graphql-client
graphql-client copied to clipboard
A Ruby library for declaring, composing and executing GraphQL queries
What is the best way to handle a microservice unavailability situation? That is, an HTTP 404 error? I could not find it in the documentation.
How exactly do I create a mutation with custom objects? For example, I have the following mutation: ``` Query = Vsa::Client.parse
Hey guys, I'm getting this error when I was trying to initiate the client: ``` ArgumentError (Can't define Block to represent type _Block_ because it's already defined) ``` FYI, I...
The samples suggest to load the `Schema` while the ruby code is loaded. This will lead to an ruby application not loading at all, if the remote api is offline...
My use case is that while troubleshooting with Shopify, they need a header from the request to track find the call on their side. Needing to get values from the...
When using this graphql client, i am unable to get the response headers. Only the response body is parsed and returned: https://github.com/github/graphql-client/blob/a0f782c6edccdebdaaf31020b4597331675239ad/lib/graphql/client/http.rb#L76 This is inconvenient as headers might contain useful...
Hello guys, Thanks for your work, I am running into a small issue and I would like to know how to do this. I need to call an graphql API,...
`GraphQL::Client.dump_schema` doesn't detect failed introspection queries which can result in corrupt schema dumps. This PR changes the method to fail loudly if there is a problem running the introspection query.
Schema dumps in SDL tend to be easier for humans to read so this PR adds methods to `GraphQL::Client` for dumping/loading schema SDL. I chose to add new methods to...
This PR adds warning reporting when GraphQL documents reference deprecated schema members. We're using something similar at Salsify so I thought I'd see if you're interested in adding to this...