Execution of resolver chains #6641
Unanswered
DimuthuMadushan
asked this question in
Q&A
Replies: 1 comment
-
Given
When you run If your implementation of |
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
-
This is regarding the resolver chain in the apollo server. I’m new to apollo GraphQL and I need to clarify the following. Let’s say we have a GraphQL field that returns an Object. Assume that object has more than one field and the query asks for one of them. When executing the resolver for that field, the resolver argument
parent
included the complete result of the parent object even if the query is asked for one field. My problem is isn’t this inefficient that resolves all the object fields rather than resolving the field query asks for? Is there any special reason for this behavior?Beta Was this translation helpful? Give feedback.
All reactions