mercurius-js / mercurius

Implement GraphQL servers and gateways with Fastify
https://mercurius.dev/
MIT License
2.32k stars 234 forks source link

feat: make request available in context by default #1088

Open adtennant opened 4 months ago

adtennant commented 4 months ago

I know this is very easy to define a custom context for, but it's annoying to have to do it (or do reply.request) every time and this is a closer match to standard Fastify handlers.

mcollina commented 3 months ago

CI does not seem happy

jonnydgreen commented 3 months ago

Looking at the error in the CI, I think the issue is fixed in main (by this PR the other day: https://github.com/mercurius-js/mercurius/pull/1090)

@adtennant Maybe worth a quick rebase and re-run to be on the safe side?