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

feat: allow access to Fastify request from Node request #1385

Merged
merged 2 commits into from Nov 10, 2020
Merged

Conversation

benjie
Copy link
Member

@benjie benjie commented Nov 10, 2020

Description

For pgSettings and additionalGraphQLContextFromRequest users may need a way to get "back" from the Node request to the Fastify request so that they can use the features of Fastify middleware. We already enable this via req._koaCtx for Koa, this PR adds req._fastifyRequest for Fastify (v3).

Fixes #1382

Performance impact

Negligible

Security impact

None known.

@benjie benjie merged commit a3cd8b8 into v4 Nov 10, 2020
@benjie benjie deleted the fastify-cookies branch November 10, 2020 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Version 4.10 with fastify does not support cookies in pgSettings
1 participant