Support Providing Extra arguments from parent resolver to child resolver #707
abishek-rz
started this conversation in
General
Replies: 1 comment 9 replies
-
Root resolver returns data for top level query resolvers. It doesn't produce context. To avoid repeating API calls you are supposed to cache your data on the context, but "having to repeat api call in child resolver" sounds like there's problem elsewhere. Usually child resolver shouldn't need to repeat parent's API call. Can you show the code? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi I create some common context objects when resolving object in the root resolver, since I need to make an api call and prepare this context I don't want to repeat this call for every child resolver
The issue is when using query aliases the context from the last api call overrides all the query aliases, I would like to handle this by creating a query id when I'm at the root object and passing this as a additional query_id argument to all resolvers using extensions but It does not recursively pass from the parent to child resolver, could you please support this
Beta Was this translation helpful? Give feedback.
All reactions