Versions in this module Expand all Collapse all v0 v0.0.11 Sep 5, 2020 Changes in this version + var IntrospectionQuery = ... + func ApplyFragments(selectionSet ast.SelectionSet, fragmentDefs ast.FragmentDefinitionList) (ast.SelectionSet, error) + func ExtractVariables(args ast.ArgumentList) []string + func FormatSelectionSet(selection ast.SelectionSet) string + func IntrospectAPI(queryer Queryer) (*ast.Schema, error) + func LoadSchema(typedef string) (*ast.Schema, error) + func PrintQuery(document *ast.QueryDocument) (string, error) + func SelectedFields(source ast.SelectionSet) []*ast.Field + type CollectedField struct + NestedSelections []ast.SelectionSet + type CollectedFieldList []*CollectedField + func (c *CollectedFieldList) GetOrCreateForAlias(alias string, creator func() *CollectedField) *CollectedField + type Error struct + Extensions map[string]interface{} + Message string + Path []interface{} + func NewError(code string, message string) *Error + func (e *Error) Error() string + type ErrorList []error + func (list ErrorList) Error() string + type HTTPQueryer interface + WithHTTPClient func(client *http.Client) Queryer + type HTTPQueryerWithMiddlewares interface + WithHTTPClient func(client *http.Client) Queryer + WithMiddlewares func(wares []NetworkMiddleware) Queryer + type IntrospectionInputValue struct + DefaultValue string + Description string + Name string + Type IntrospectionTypeRef + type IntrospectionQueryDirective struct + Args []IntrospectionInputValue + Description string + Locations []string + Name string + type IntrospectionQueryEnumDefinition struct + DeprecationReason string + Description string + IsDeprecated bool + Name string + type IntrospectionQueryFullType struct + Description string + EnumValues []IntrospectionQueryEnumDefinition + Fields []IntrospectionQueryFullTypeField + InputFields []IntrospectionInputValue + Interfaces []IntrospectionTypeRef + Kind string + Name string + PossibleTypes []IntrospectionTypeRef + type IntrospectionQueryFullTypeField struct + Args []IntrospectionInputValue + DeprecationReason string + Description string + IsDeprecated bool + Name string + Type IntrospectionTypeRef + type IntrospectionQueryResult struct + Schema *IntrospectionQuerySchema + type IntrospectionQueryRootType struct + Name string + type IntrospectionQuerySchema struct + Directives []IntrospectionQueryDirective + MutationType *IntrospectionQueryRootType + QueryType IntrospectionQueryRootType + SubscriptionType *IntrospectionQueryRootType + Types []IntrospectionQueryFullType + type IntrospectionTypeRef struct + Kind string + Name string + OfType *IntrospectionTypeRef + type MockSuccessQueryer struct + Value interface{} + func (q *MockSuccessQueryer) Query(ctx context.Context, input *QueryInput, receiver interface{}) error + type MultiOpQueryer struct + BatchInterval time.Duration + MaxBatchSize int + func NewMultiOpQueryer(url string, interval time.Duration, maxBatchSize int) *MultiOpQueryer + func (q *MultiOpQueryer) Query(ctx context.Context, input *QueryInput, receiver interface{}) error + func (q *MultiOpQueryer) WithHTTPClient(client *http.Client) Queryer + func (q *MultiOpQueryer) WithMiddlewares(mwares []NetworkMiddleware) Queryer + type NetworkMiddleware func(*http.Request) error + type NetworkQueryer struct + AuthToken string + Client *http.Client + Middlewares []NetworkMiddleware + URL string + func (q *NetworkQueryer) ExtractErrors(result map[string]interface{}) error + func (q *NetworkQueryer) SendQuery(ctx context.Context, payload []byte) ([]byte, error) + func (q *NetworkQueryer) SendQueryWithAuth(ctx context.Context, auth string, payload []byte) ([]byte, error) + type QueryInput struct + OperationName string + Query string + QueryDocument *ast.QueryDocument + Variables map[string]interface{} + func (i *QueryInput) Raw() interface{} + func (i *QueryInput) String() string + type Queryer interface + Query func(context.Context, *QueryInput, interface{}) error + type QueryerFunc func(*QueryInput) (interface{}, error) + func (q QueryerFunc) Query(ctx context.Context, input *QueryInput, receiver interface{}) error + type QueryerWithMiddlewares interface + WithMiddlewares func(wares []NetworkMiddleware) Queryer + type RemoteSchema struct + Schema *ast.Schema + URL string + func IntrospectRemoteSchema(url string) (*RemoteSchema, error) + func IntrospectRemoteSchemaWithAuth(url, auth string) (*RemoteSchema, error) + func IntrospectRemoteSchemas(urls ...string) ([]*RemoteSchema, error) + func IntrospectRemoteSchemasWithAuth(urls map[string]string) ([]*RemoteSchema, error) + type SingleRequestQueryer struct + func NewSingleRequestQueryer(url string) *SingleRequestQueryer + func NewSingleRequestQueryerWithAuth(auth, url string) *SingleRequestQueryer + func (q *SingleRequestQueryer) AuthToken() string + func (q *SingleRequestQueryer) Query(ctx context.Context, input *QueryInput, receiver interface{}) error + func (q *SingleRequestQueryer) URL() string + func (q *SingleRequestQueryer) WithHTTPClient(client *http.Client) Queryer + func (q *SingleRequestQueryer) WithMiddlewares(mwares []NetworkMiddleware) Queryer