Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SkipByDirective ¶
Types ¶
type FieldSelection ¶
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)
Click to show internal directories.
Click to hide internal directories.