movio / bramble

A federated GraphQL API gateway
https://movio.github.io/bramble/
MIT License
497 stars 55 forks source link

persisted queries #156

Open csucu opened 2 years ago

csucu commented 2 years ago

So my backend services use gqlgen's automatic persisted queries, seems like this isn't compatible with bramble, as the extensions part doesn't make it through. Is there any way to get this to work? or to enable persisted queries in bramble?

nmaquet commented 2 years ago

Bramble doesn't currently support APQ but it sounds like a nice addition. It shouldn't be difficult to add since our GraphQL server implementation is gqlgen and it supports APQ out of the box.

One difficulty you may not have considered is that you'd have to persist the queries somewhere external to Bramble, in something like Redis. All in all, this isn't something we'd add to Bramble's core but it could be a very nice plugin. The plugin API would need to be extended for this (to give access to the handler.Server value) but that's very easy to do.