Replies: 1 comment
-
I have a similair use case, and I don't udnerstand how to pass the headers |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
I have a custom resolver that uses mesh SDK to combine two services in a new resolver. So I can call this custom resolver
findUserGroups
and inside this resolver implementation, I'm using two SDK functions tofindUser
based on email and get theid
for the user and I want to pass thisid
as a request header to the second API call. The second one is another SDK function calledfindGroup
each SDK functions belongs to different sources and different GraphQL subgraphs.How can I manipulate and modify context inside the custom resolver and pass this new context to the SDK?
My resolver is something like this:
In fact, for
findGroup
query I need to pass 3 header values. I have to passapiKey
androle
from the main request and adduserId
to that from the result offindUser
API call.Beta Was this translation helpful? Give feedback.
All reactions