Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Pass HttpContext for an operation to use #2129

Unanswered
diesieben07 asked this question in Ideas
Discussion options

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(...);
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /