# README
nautilus/graphql

A package that wraps vektah/gqlparser with convenience methods for building GraphQL tools on the server, like nautilus/gateway.
# Functions
ApplyFragments takes a list of selections and merges them into one, embedding any fragments it runs into along the way.
ExtractVariables takes a list of arguments and returns a list of every variable used.
FormatSelectionSet returns a pretty printed version of a selection set.
IntrospectAPI send the introspection query to a Queryer and builds up the schema object described by the result.
IntrospectRemoteSchema is used to build a RemoteSchema by firing the introspection query at a remote service and reconstructing the schema object from the response.
IntrospectRemoteSchemas takes a list of URLs and creates a RemoteSchema by invoking graphql.IntrospectRemoteSchema at that location.
IntrospectRemoteSchemasWithOptions takes a list of URLs and an optional list of graphql.IntrospectionOptions and creates a RemoteSchema by invoking graphql.IntrospectRemoteSchema at that location.
IntrospectWithHTTPClient returns an instance of graphql.IntrospectOptions with given context to be used as a parameter for graphql.Queryer.Query function in the graphql.IntrospectAPI function.
IntrospectWithHTTPClient returns an instance of graphql.IntrospectOptions with given client to be pass to an instance of a graphql.Queryer by the IntrospectOptions.Apply function.
IntrospectWithMiddlewares returns an instance of graphql.IntrospectOptions with given middlewares to be pass to an instance of a graphql.Queryer by the IntrospectOptions.Apply function.
IntrospectWithRetrier returns an instance of graphql.IntrospectOptions with the given Retrier.
LoadSchema takes an SDL string and returns the parsed version.
NewCountRetrier returns a CountRetrier with the given maximum number of retries beyond the first attempt.
NewError returns a graphql error with the given code and message.
NewMultiOpQueryer returns a MultiOpQueryer with the provided parameters.
NewSingleRequestQueryer returns a SingleRequestQueryer pointed to the given url.
PrintQuery creates a string representation of an operation.
No description provided by the author
# Variables
IntrospectionQuery is the query that is fired at an API to reconstruct its schema.
# Structs
CountRetrier is a Retrier that stops after a number of attempts.
Error represents a graphql error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IntrospectOptions represents the options for the IntrospectAPI function.
MockSuccessQueryer responds with pre-defined value when executing a query.
MultiOpQueryer is a queryer that will batch subsequent query on some interval into a single network request to a single target.
No description provided by the author
QueryInput provides all of the information required to fire a query.
RemoteSchema encapsulates a particular schema that can be executed by sending network requests to the specified URL.
SingleRequestQueryer sends the query to a url and returns the response.
No description provided by the author
# Interfaces
No description provided by the author
HTTPQueryer is an interface for queryers that let you configure an underlying http.Client.
HTTPQueryerWithMiddlewares is an interface for queryers that let you configure an underlying http.Client and accept middlewares.
Queryer is a interface for objects that can perform.
QueryerWithMiddlewares is an interface for queryers that support network middlewares.
Retrier indicates whether or not to retry and attempt another query.
# Type aliases
ErrorList represents a list of errors.
NetworkMiddleware are functions can be passed to SingleRequestQueryer.WithMiddleware to affect its internal behavior.
QueryerFunc responds to the query by calling the provided function.
No description provided by the author