selected

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasAsyncSel

func HasAsyncSel(sels []Selection) bool

Types

type Request

type Request struct {
	Schema             *ast.Schema
	Doc                *ast.ExecutableDefinition
	Vars               map[string]interface{}
	Mu                 sync.Mutex
	Errs               []*errors.QueryError
	AllowIntrospection bool
}

func (*Request) AddError

func (r *Request) AddError(err *errors.QueryError)

type SchemaField

type SchemaField struct {
	resolvable.Field
	Alias       string
	Args        map[string]interface{}
	PackedArgs  reflect.Value
	Sels        []Selection
	Async       bool
	FixedResult reflect.Value
}

func (*SchemaField) Resolve

func (f *SchemaField) Resolve(ctx context.Context, resolver reflect.Value) (output interface{}, err error)

type Selection

type Selection interface {
	// contains filtered or unexported methods
}

func ApplyOperation

func ApplyOperation(r *Request, s *resolvable.Schema, op *ast.OperationDefinition) []Selection

type TypeAssertion

type TypeAssertion struct {
	resolvable.TypeAssertion
	Sels []Selection
}

type TypenameField

type TypenameField struct {
	resolvable.Object
	Alias string
}

Jump to

Keyboard shortcuts

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