Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass context from subscriptions through to links #4925

Merged
merged 1 commit into from
Jul 10, 2020

Conversation

sgtpepper43
Copy link

Resolves apollographql/apollo-feature-requests#93

Allow a context to be supplied when creating subscriptions, and pass that context through to the links.

There are a bunch of other changes in here that I'm pretty sure was made by the linter or prettier or whatever you've got going. Some pre-commit hook that automatically ran. I'll mark those changes and I can get rid of them if you want.

Checklist:

  • If this PR is a new feature, please reference an issue where a consensus about the design was reached (not necessary for small changes)
  • Make sure all of the significant new logic is covered by tests

@apollo-cla
Copy link

@sgtpepper43: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/

@benjamn benjamn self-assigned this Jun 5, 2019
@hwillson hwillson added this to the Post 3.0 milestone Sep 4, 2019
Copy link
Member

@hwillson hwillson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much for your initial work on this @sgtpepper43!

@benjamn we should be all set here, but let me know if I should go ahead and merge or if you would prefer to wait until after your recent large round of refactoring is in place.

Makes sure a supplied `context` object is passed through the
link execution chain, when set in `client.subscribe` options.
@hwillson hwillson merged commit ede4b31 into apollographql:master Jul 10, 2020
@promontis
Copy link

@hwillson any ETA when will this be released?

@hwillson
Copy link
Member

@promontis It will be available in the next RC release, which will probably be later today.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pass context from subscription to link
6 participants