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

docs: Adjustments to the API reference for apollo-server's context. #3506

Merged
merged 6 commits into from Nov 18, 2019

Conversation

abernix
Copy link
Member

@abernix abernix commented Nov 14, 2019

As made clear by #3455, our documentation was previously lacking with regards to what the context method actually receives for each integration. (And most problematicaly, it failed to note that it was integration-specific!

This should hopefully make it more clear, and we can follow-up on #3455 to actually reference this new content.

I've also made a couple other adjustments within this PR, but I think this adds some clarity, and improves the formatting.

image

This isn't really relevant to the `typeDefs` or the `resolvers` and is a
repetition of the example directly below it (in the `context` section).

As I'm about to update the `context` docs with some important information,
I'll remove this from `typeDefs` in lieu of that better placed example
within `context`!
In order to correctly nest this under the `context` bullet-point, this needs
to be indented the same number of characters as the first character after
the bullet-point symbol!
abernix added a commit to duncanchen/apollo-server that referenced this pull request Nov 14, 2019
…#3506.

This should hopefully make it more clear what information is available on
the argument to `context`, and how it might need to be adjusted for each
specific integration.
Copy link
Member

@trevor-scheer trevor-scheer left a comment

Choose a reason for hiding this comment

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

This is an excellent addition, thanks for putting this together @abernix!

@abernix abernix merged commit d1651e2 into master Nov 18, 2019
@abernix abernix deleted the abernix/apollo-server-api-context branch November 18, 2019 15:05
abernix added a commit that referenced this pull request Dec 30, 2019
* Update authentication.md

I follow this example on Azure Function and it failed. After a little digging, I found out the req object is passed as "request". There may be some inconsistency in implementation.

* Adjust #3455 to account for new content in #3506.

This should hopefully make it more clear what information is available on
the argument to `context`, and how it might need to be adjusted for each
specific integration.

Co-authored-by: Jesse Rosenberger <git@jro.cc>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2023
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.

None yet

2 participants