# README
nautilus/graphql
A package that wraps vektah/gqlparser with some convenience methods for building graphql tooling on the server.
# 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.
IntrospectRemoteSchemasWithAuth takes a list of URLs and creates a RemoteSchema by invoking graphql.IntrospectRemoteSchema at that location.
IntrospectRemoteSchemaWithAuth is used to build a RemoteSchema by firing the introspection query at a remote service and reconstructing the schema object from the response.
LoadSchema takes an SDL string and returns the parsed version.
NewError returns a graphql error with the given code and message.
NewMultiOpQueryer returns a MultiOpQueryer with the provided paramters.
NewSingleRequestQueryer returns a SingleRequestQueryer pointed to the given url.
NewSingleRequestQueryerWithAuth 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
CollectedField is a representations of a field with the list of selection sets that must be merged under that field.
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
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.
# Interfaces
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.
# Type aliases
CollectedFieldList is a list of CollectedField with utilities for retrieving them.
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.