graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

Built-in support for APQ (Persisted Queries)

Open mikocot opened this issue 1 year ago • 4 comments

APQ (Automatic Persisted Queries) are strandard and also a requirement for some GraphQL servers and they are also implemented in the graphql-server since 5.3

https://github.com/graphql-dotnet/graphql-dotnet/pull/3134

It would be cool to be able to use this feature out of box with the .net client Either building the query with some helper methods first, or with opt-in automatic conversion

https://www.apollographql.com/docs/apollo-server/performance/apq/

mikocot avatar Apr 21 '23 14:04 mikocot

I have implemented this in other in-house GraphQL client but I think it can be easily ported here.

sungam3r avatar Apr 21 '23 16:04 sungam3r

I have implemented this in other in-house GraphQL client but I think it can be easily ported here.

cool, if you dont have time for a full PR maybe you could at least drop some example code here so we can discuss the best approach to start?

mikocot avatar Apr 24 '23 10:04 mikocot

thanks @sungam3r, looks like things are moving fast now!

mikocot avatar Apr 25 '23 12:04 mikocot

In fact, I am now working in a hurry on a few tasks and cannot fully concentrate on one thing. APQ PR is more like a draft for now.

sungam3r avatar Apr 25 '23 14:04 sungam3r