gqlgen: github.com/99designs/gqlgen/graphql/executor Index | Files | Directories

package executor

import "github.com/99designs/gqlgen/graphql/executor"

Index

Package Files

executor.go extensions.go

type Executor Uses

type Executor struct {
    // contains filtered or unexported fields
}

Executor executes graphql queries against a schema.

func New Uses

func New(es graphql.ExecutableSchema) *Executor

New creates a new Executor with the given schema, and a default error and recovery callbacks, and no query cache or extensions.

func (*Executor) AroundFields Uses

func (e *Executor) AroundFields(f graphql.FieldMiddleware)

AroundFields is a convenience method for creating an extension that only implements field middleware

func (*Executor) AroundOperations Uses

func (e *Executor) AroundOperations(f graphql.OperationMiddleware)

AroundOperations is a convenience method for creating an extension that only implements operation middleware

func (*Executor) AroundResponses Uses

func (e *Executor) AroundResponses(f graphql.ResponseMiddleware)

AroundResponses is a convenience method for creating an extension that only implements response middleware

func (*Executor) CreateOperationContext Uses

func (e *Executor) CreateOperationContext(ctx context.Context, params *graphql.RawParams) (*graphql.OperationContext, gqlerror.List)

func (*Executor) DispatchError Uses

func (e *Executor) DispatchError(ctx context.Context, list gqlerror.List) *graphql.Response

func (*Executor) DispatchOperation Uses

func (e *Executor) DispatchOperation(ctx context.Context, rc *graphql.OperationContext) (graphql.ResponseHandler, context.Context)

func (*Executor) PresentRecoveredError Uses

func (e *Executor) PresentRecoveredError(ctx context.Context, err interface{}) *gqlerror.Error

func (*Executor) SetErrorPresenter Uses

func (e *Executor) SetErrorPresenter(f graphql.ErrorPresenterFunc)

func (*Executor) SetQueryCache Uses

func (e *Executor) SetQueryCache(cache graphql.Cache)

func (*Executor) SetRecoverFunc Uses

func (e *Executor) SetRecoverFunc(f graphql.RecoverFunc)

func (*Executor) Use Uses

func (e *Executor) Use(extension graphql.HandlerExtension)

Use adds the given extension to this Executor.

Directories

PathSynopsis
testexecutor

Package executor imports 8 packages (graph) and is imported by 10 packages. Updated 2020-09-25. Refresh now. Tools for package owners.