What's the correct way to return an edge type in a mutation? #4595
Answered
by
rmosolgo
DennisMartinez
asked this question in
Q&A
-
Right now I've manually constructed the type to look like an edge, but I was wondering if there is an easier way where I don't have to manually construct the node or cursor? Here's a simplified version of what I currently have.
|
Beta Was this translation helpful? Give feedback.
Answered by
rmosolgo
Aug 30, 2023
Replies: 1 comment 1 reply
-
👋 GraphQL-Ruby includes I hope that helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
DennisMartinez
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👋 GraphQL-Ruby includes
GraphQL::Relay::RangeAdd
to help with this: https://github.com/rmosolgo/graphql-ruby/blob/master/lib/graphql/relay/range_add.rbI hope that helps!