mercurius-js / mercurius

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

[Draft] Parse persited query on subscription. #1012

Open bglgwyng opened 11 months ago

bglgwyng commented 11 months ago

In the current implementation, persisted queries only work with queries and mutations, not subscriptions. In this PR, persisted queries feature for subscriptions is added.

Nonetheless, the logging mechanism for preserving new persisted queries has been deactivated temporarily. I will reinstate this functionality once any potential memory leaks are resolved. If you can manage without logging for the preservation of new persisted queries, you are welcome to utilize this branch for your purposes.