Skip to content

Pass payload into the context function for subscriptions#1513

Merged
evans merged 4 commits into
apollographql:masterfrom
clayne11:fix/add-payload-context
Aug 16, 2018
Merged

Pass payload into the context function for subscriptions#1513
evans merged 4 commits into
apollographql:masterfrom
clayne11:fix/add-payload-context

Conversation

@clayne11

@clayne11 clayne11 commented Aug 9, 2018

Copy link
Copy Markdown
Contributor

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

evans commented Aug 16, 2018

Copy link
Copy Markdown
Contributor

@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