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

Graphql Query Batching

Open TohWei opened this issue 7 years ago • 5 comments
trafficstars

Hi, Does this client lib support graphql query batching? If yes, would be appreciated if you guy can provide some sample on how to do this.

Thanks. Jeff

TohWei avatar Sep 14 '18 09:09 TohWei

Hi, No, for now this library doesn't support batching.

It's a really good idea that I have interest in implement. But I think that we need to discuss how the batching system will work. So any idea, references, etc... will help

deinok avatar Sep 14 '18 12:09 deinok

I am new to graphql too. I read the Batching technique from here: https://blog.apollographql.com/query-batching-in-apollo-63acfd859862

If you ask me how it should work, then I think the reference does show the concepts.

TohWei avatar Sep 27 '18 13:09 TohWei

@TohWei Its pretty much my idea, add a delay between requests. The biggest problem is that i will need to understand the Query parameter in order to join and then split the true request/response

deinok avatar Sep 27 '18 14:09 deinok

Related to graphql-dotnet/server#241

sungam3r avatar Aug 15 '19 14:08 sungam3r

I must say that query batching, although it may be useful somewhere, is far from universally used.

sungam3r avatar Mar 20 '20 20:03 sungam3r