entgql: enable automatic field collection in generated resolvers #1451
Unanswered
shadowspore
asked this question in
Q&A
Replies: 2 comments
-
Tagging @alexsn, since he's the one that added this functionality. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Field collection should occur on the query root field and be recursive from there. Field are not collected in the linked location as those are subfield resolvers. |
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
-
Is there any reason why generated resolvers does not call query.CollectFields(ctx)?
https://github.com/ent/contrib/blob/master/entgql/internal/todo/ent/edge.go#L21-L34
Beta Was this translation helpful? Give feedback.
All reactions