Complex mutations
#887
-
How do we do complex mutations?
Lets assume we add:
So I assume we do something like:
What I want to do is have a resolver for PollOptionsInput as well
The question, how do I make this work? What should "something" be? Do we do something similar for resolvers:
Or should me createPollInput function call reolve_poll_options directly? |
Beta Was this translation helpful? Give feedback.
Answered by
rafalp
Jun 28, 2022
Replies: 1 comment
-
GraphQL doesn't support resolvers for Input's fields. Whatever logic you want to implement, you need to call it from mutation's resolver. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rafalp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GraphQL doesn't support resolvers for Input's fields. Whatever logic you want to implement, you need to call it from mutation's resolver.