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

Way to load request from .gql file?

Open tettoffensive opened this issue 5 years ago • 2 comments

Is there a supported way to load requests from a .gql file? I'm using the gql template right now. But I'd rather put my requests in their own gql files and load them that way.

tettoffensive avatar Oct 15 '20 23:10 tettoffensive

also I have same issue. any solution?

alimoqimi97 avatar Mar 03 '22 07:03 alimoqimi97

I too am curious if this is possible.

bushblade avatar Jul 10 '22 18:07 bushblade

This is out of scope for graphql-request, but there is nothing stopping you from loading these GraphQl files with another tool and then passing the result into graphql-request.

jonkoops avatar Nov 05 '23 11:11 jonkoops