Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithOperationContext ¶
func WithOperationContext(ctx context.Context, rc *OperationContext) context.Context
Types ¶
type CollectedField ¶
type CollectedField struct { *ast.Field Selections ast.SelectionSet }
func CollectFields ¶
func CollectFields(reqCtx *OperationContext, selSet ast.SelectionSet, satisfies []string) []CollectedField
CollectFields returns the set of fields from an ast.SelectionSet where all collected fields satisfy at least one of the GraphQL types passed through satisfies. Providing an empty or nil slice for satisfies will return collect all fields regardless of fragment type conditions.
type FieldSet ¶
func NewFieldSet ¶
func NewFieldSet(fields []CollectedField) *FieldSet
func (*FieldSet) MarshalGQL ¶
type OperationContext ¶
type OperationContext struct { RawQuery string Variables map[string]interface{} OperationName string Doc *ast.QueryDocument Operation *ast.OperationDefinition }
func GetOperationContext ¶
func GetOperationContext(ctx context.Context) *OperationContext
Click to show internal directories.
Click to hide internal directories.