You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using @graphql-tools/[email protected] and don't understand the why IDelegateRequestOptions.context is ignored when delegating a request. Instead, now I've got to set my context at the ExecutionRequest I'm passing in the options as well:
delegateRequest({request: { ... newRequest, ...{context: requestCtx}},// myContext will be used, e.g. will be available in my execution function.context: myContext,// myContext will be ignored
....})
In v7 the behavior was different. Is this a bug, or what's the point of these two different contexts?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using
@graphql-tools/[email protected]
and don't understand the whyIDelegateRequestOptions.context
is ignored when delegating a request. Instead, now I've got to set my context at theExecutionRequest
I'm passing in the options as well:In v7 the behavior was different. Is this a bug, or what's the point of these two different contexts?
Beta Was this translation helpful? Give feedback.
All reactions