-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Feature request, not a bug
I have finally successfully got a request working with this library, but for me it was a struggle
2 hurdles:
- Figuring out that I manually had to add 'Bearer' to my token (added PR to make issues with this clearer for user)
- Providing the correct format for the JSON query
This second issue I really think has some easy solutions, but I don't think am not a good enough Ruby programmer to provide the solution yet.
In my opinion it would be much neater to be able to write .graphql files in the _graphql dir, and then have query.rb simply parse the .graphql file and add the contents to the correct object structure, then generate the JSON.
As I understand anyways all requests to Graphql have to be wrapped in this same format (query sits under a json key called 'query'), so why not parse the graphql query file and compose small JSON wrapper it needs?
Thanks :)
Metadata
Metadata
Assignees
Labels
No labels