-
-
Notifications
You must be signed in to change notification settings - Fork 310
Pass HttpContext for an operation to use
#2129
Unanswered
diesieben07
asked this question in
Ideas
-
Currently we can pass custom headers into an operation using context: { headers }. It would be nice if we could also pass in HttpContext (docs), to allow passing data to any interceptors.
I would propose an API like so:
const httpContext = new HttpContext(); httpContext.set(...); whatever.mutate({ vars }, { context: { httpContext } }).subscribe(...);
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment