The functions in this module let you perform HTTP requests to conventional GraphQL server endpoints.
An error returned by the GraphQL server that indicates there was something wrong with the request.
A location in a GraphQL request document.
Takes a URL and a Query Request and returns a Task that you can perform with Task.attempt which will send a POST request to a GraphQL server at the given endpoint.
Takes a URL and a Mutation Request and returns a Task that you can perform with Task.attempt which will send a POST request to a GraphQL server at the given endpoint.
Options available for customizing GraphQL HTTP requests. method should be either "GET" or "POST". For GET requests, the url is modified to include extra parameters in the query string for the GraphQL document and variables. Otherwise, the document and variables are included in the HTTP request body.
Like sendQuery, but takes an RequestOptions value instead of a URL to let you further customize the HTTP request.
Like sendMutation, but takes an RequestOptions value instead of a URL to let you further customize the HTTP request.
Represents errors that can occur when sending a GraphQL request over HTTP.