An API key which will be added to the header of the request in the form of "Authorization": "Token apiKey"
Caches the requests and returns the results of previously made requests instead of making a new request if the "endpoint", "apiKey", "query" and "variables" are exact matches.
Only successful requests which return content are cached.
The endpoint/url of the GraphQL API.
If set and an error occurs during the call, the returned result is "false". Otherwise the returned value is the error log.
In case of an error, console.log extensive error log.
Printed query and variables con be used at https://graphiql-online.com/
Sends a GraphQL query to the endpoint and returns the result as data object.
the query as string (compatible with graphqlbuilder.stringRequest(...))
Optional
variables: { the variables used in the query as {key: value, ...} object (optional)
Optional
log: booleanconsole.log the query and its variables
Generated using TypeDoc
A simple GraphQL call handler.
How to: https://stepzen.com/blog/consume-graphql-in-javascript
Helpfull tool: https://graphiql-online.com/