wundergraph / cosmo

The open-source solution to building, maintaining, and collaborating on GraphQL Federation at Scale. The alternative to Apollo Studio and GraphOS.
https://cosmo-docs.wundergraph.com/
Apache License 2.0
711 stars 102 forks source link

Add support for persisted queries in cosmo router running on bare metal #1232

Open ayushs-2k4 opened 3 weeks ago

ayushs-2k4 commented 3 weeks ago

Component(s)

router

Is your feature request related to a problem? Please describe.

How to use local storage for persisted queries in cosmo router (running on bare metal) and also how to provide "operationManifest.json" at the start to register queries, mutations, subscriptions.

Currently, there seems to be no way to use persisted queries when running cosmo router locally (on bare metal, macOS).

Describe the solution you'd like

There should be a command to register persisted queries or we can do something like Apollo Server, they give us an option to handle persisted queries cache completely, so we can just make methods like get, put, etc to get query form hash or check if it exists or not or even add a new query to DB, and it is upto us how we manage queries (whether use in-memory, or use some DB or even simple JSON file!)

Describe alternatives you've considered

There is currently no alternative to Persisted queries.

Additional context

No response

github-actions[bot] commented 3 weeks ago

WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible. The roadmap is driven by our customers and we have to prioritize issues that are important to them. You can influence the priority by becoming a customer. Please contact us here.

flymedllva commented 2 weeks ago

I would generally like to be able to write a custom implementation of Persisted Queries, as just a JSON file won't work for me and we want to keep these operations in our repository, updating them constantly