graphql-request
graphql-request copied to clipboard
Way to load request from .gql file?
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.
also I have same issue. any solution?
I too am curious if this is possible.
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.