executor

package
v0.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

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

Executor executes graphql queries against a schema.

func New

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

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

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

func (*Executor) AroundOperations

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

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

func (*Executor) AroundResponses

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

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

func (*Executor) CreateOperationContext

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

func (*Executor) DispatchError

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

func (*Executor) DispatchOperation

func (*Executor) PresentRecoveredError

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

func (*Executor) SetErrorPresenter

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

func (*Executor) SetQueryCache

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

func (*Executor) SetRecoverFunc

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

func (*Executor) Use

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

Use adds the given extension to this Executor.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL