helios1138 / graphql-typed-client

A tool that generates a strongly typed client library for any GraphQL endpoint. The client allows writing GraphQL queries as plain JS objects (with type safety, awesome code completion experience, custom scalar type mapping, type guards and more)
MIT License
212 stars 18 forks source link

Feature request: request batching #3

Closed capaj closed 5 years ago

capaj commented 5 years ago

would be nice if this library had support for query batching.

We currently use apollo-client and it's query batching strategy is to wait with any query fox X ms and if there are any consecutive it just adds them into array and dispatches the array to the server I think. So it should be trivial.

helios1138 commented 5 years ago

https://github.com/helios1138/graphql-typed-client/tree/next will have the ability to pass custom fetcher function, which can be implemented in any way one would like, including using apollo-client