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 payload into the context function for subscriptions #1513

Merged
merged 4 commits into from
Aug 16, 2018

Conversation

clayne11
Copy link
Contributor

@clayne11 clayne11 commented Aug 9, 2018

The payload can be used for things like auth. You can pass a token on
the payload of the message and use it to fetch the user.

Fixes #1505.

TODO:

  • Update CHANGELOG.md with your change (include reference to issue & this PR)
  • Make sure all of the significant new logic is covered by tests
  • Rebase your changes on master so that they can be merged easily
  • Make sure all tests and linter rules pass

clayne11 and others added 4 commits August 9, 2018 14:34
@evans evans merged commit 0f17f7c into apollographql:master Aug 16, 2018
@evans
Copy link
Contributor

evans commented Aug 16, 2018

@clayne11 Thank you so much! We'll get this out in a 2.1 release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants