You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
graphql-request supports batching, but it cannot be used with the sdk.
Describe the solution you'd like
The plugin should generate a batched version of the queries, e.g. sdk.queryNameBatch where the first parameter is an array instead of an object.
Describe alternatives you've considered
I can create a client directly by using GraphQLClient from graphql-request and call client.batchRequests( [ { document: QueryDocumentFromGeneratedFile } ] ) but it's not ideal (I have to manually set the return type of the method).
The text was updated successfully, but these errors were encountered:
Yes, but I would probably need some guidance as to how it could be approached; I'll take a look around and let you know of it's clear to me how one would do this.
Is your feature request related to a problem? Please describe.
graphql-request supports batching, but it cannot be used with the sdk.
Describe the solution you'd like
The plugin should generate a batched version of the queries, e.g.
sdk.queryNameBatch
where the first parameter is an array instead of an object.Describe alternatives you've considered
I can create a client directly by using
GraphQLClient
fromgraphql-request
and callclient.batchRequests( [ { document: QueryDocumentFromGeneratedFile } ] )
but it's not ideal (I have to manually set the return type of the method).The text was updated successfully, but these errors were encountered: