mercurius-js / mercurius

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

refactor(persistedQueries): moving the executor out of routes.js #1078

Closed barelyhuman closed 8 months ago

barelyhuman commented 8 months ago

Refactor required to make it easier for external tooling to also be able to reuse the persistedQuery logic

Closes: https://github.com/nearform/mercurius-dynamic-schema/issues/4

barelyhuman commented 8 months ago

Can you please undo all formatting changes? The functional changes are invisible because of them.

Will revert, but there's no functional changes, just moved the executePersistedQuery out of routes.js, Line number 235 is all that has changed

barelyhuman commented 8 months ago

Closing in lieu of #1080