Support fields that return top level operations #1942
Unanswered
marwan-at-work
asked this question in
Q&A
Replies: 1 comment
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What happened?
It's technically possible to have the following schema definition:
Note that
withUser
returns aQuery
objectWhat did you expect?
For gqlgen to handle this use case, though I imagine it's not straight forward since gqlgen doesn't create a Go Query type.
Minimal graphql.schema and models to reproduce
Output;
Beta Was this translation helpful? Give feedback.
All reactions