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

Request, response objects missing when using apollo-server-lambda #3544

Closed
sami616 opened this issue Nov 22, 2019 · 1 comment
Closed

Request, response objects missing when using apollo-server-lambda #3544

sami616 opened this issue Nov 22, 2019 · 1 comment

Comments

@sami616
Copy link

sami616 commented Nov 22, 2019

Hi there, im migrating an apollo server setup from zeit to netlify functions and am having some trouble with accessing the request, response objects that are usually available in my context when using exports.handler = server.createHandler(). The rest of my app relies on these for setting cookies etc.

is there a way to still access these objects in my context for passing down to resolvers?

@abernix
Copy link
Member

abernix commented Nov 22, 2019

The context is different for each integration based on what the integration provides.

For more details on each interface, including the one available for Lambda, see the context section of the Apollo Server API, recently added in #3506.

@abernix abernix closed this as completed Nov 22, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 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

No branches or pull requests

2 participants