cosmo icon indicating copy to clipboard operation
cosmo copied to clipboard

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

Open ayushs-2k4 opened this issue 1 year ago • 2 comments
trafficstars

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

ayushs-2k4 avatar Oct 01 '24 10:10 ayushs-2k4

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.

github-actions[bot] avatar Oct 01 '24 10:10 github-actions[bot]

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

flymedllva avatar Oct 08 '24 10:10 flymedllva