Skip to content

How to enrich a response using GraphQL, Vapor and Graphiti #133

Closed Answered by cameroncooke
cameroncooke asked this question in Q&A
Discussion options

You must be logged in to vote

I've solved this I didn't realise that I could just point the schema field at a custom resolver function 🤦 , once I worked that out I could then write my own query code. I am having problems with accessing the identifier of an OptionalParent on the root object. For some reason, I can only see a nil value, but if I change the field to Parent (non-optional) the value is non-nill even though the data is the same in both scenarios.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NeedleInAJayStack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant