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
findUserGroupsand inside this resolver implementation, I'm using two SDK functions tofindUserbased on email and get theidfor the user and I want to pass thisidas a request header to the second API call. The second one is another SDK function calledfindGroupeach 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
findGroupquery I need to pass 3 header values. I have to passapiKeyandrolefrom the main request and adduserIdto that from the result offindUserAPI call.Beta Was this translation helpful? Give feedback.
All reactions