exec

package
v0.0.0-...-f420c12 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SkipByDirective

func SkipByDirective(l schema.DirectiveList, vars map[string]interface{}) (bool, *qerrors.Error)

Types

type FieldSelection

type FieldSelection struct {
	OnType    schema.Type
	Selection *schema.FieldSelection
	Field     *schema.Field
}

type FieldSelectionContext

type FieldSelectionContext struct {
	Schema        *schema.Schema
	QueryDocument *schema.QueryDocument
	// Used to provide path context in errors
	Path []string
	// The current type that is being selected against
	OnType schema.Type
	// CanCast is optional.  Used to evaluate if the current OnType can be casted.
	CanCast func(castTo schema.Type) bool
	// Vars are used to evaluate @skip directives
	Vars map[string]interface{}
}

func (FieldSelectionContext) Apply

func (c FieldSelectionContext) Apply(selections []schema.Selection) (result []FieldSelection, errs qerrors2.ErrorList)

Jump to

Keyboard shortcuts

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