postprocess

package
v2.0.0-rc.106 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetchTreeProcessor

type FetchTreeProcessor interface {
	ProcessFetchTree(root *resolve.FetchTreeNode)
}

type PlanArrayVisitor

type PlanArrayVisitor interface {
	PlanEnterArrayVisitor
	PlanLeaveArrayVisitor
}

type PlanEnterArrayVisitor

type PlanEnterArrayVisitor interface {
	EnterArray(array *resolve.Array)
}

type PlanEnterFieldVisitor

type PlanEnterFieldVisitor interface {
	EnterField(field *resolve.Field)
}

type PlanEnterObjectVisitor

type PlanEnterObjectVisitor interface {
	EnterObject(object *resolve.Object)
}

type PlanFieldVisitor

type PlanFieldVisitor interface {
	PlanEnterFieldVisitor
	PlanLeaveFieldVisitor
}

type PlanLeaveArrayVisitor

type PlanLeaveArrayVisitor interface {
	LeaveArray(array *resolve.Array)
}

type PlanLeaveFieldVisitor

type PlanLeaveFieldVisitor interface {
	LeaveField(field *resolve.Field)
}

type PlanLeaveObjectVisitor

type PlanLeaveObjectVisitor interface {
	LeaveObject(object *resolve.Object)
}

type PlanObjectVisitor

type PlanObjectVisitor interface {
	PlanEnterObjectVisitor
	PlanLeaveObjectVisitor
}

type PlanVisitor

type PlanVisitor interface {
	PlanObjectVisitor
	PlanArrayVisitor
}

type PlanWalker

type PlanWalker struct {
	CurrentFields  []*resolve.Field
	CurrentObjects []*resolve.Object
	// contains filtered or unexported fields
}

func (*PlanWalker) SetSkip

func (e *PlanWalker) SetSkip(skip bool)

func (*PlanWalker) Walk

func (e *PlanWalker) Walk(data *resolve.Object, info *resolve.GraphQLResponseInfo)

type Processor

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

func NewProcessor

func NewProcessor(options ...ProcessorOption) *Processor

func (*Processor) Process

func (p *Processor) Process(pre plan.Plan) plan.Plan

type ProcessorOption

type ProcessorOption func(*processorOptions)

func CollectDataSourceInfo

func CollectDataSourceInfo() ProcessorOption

func DisableAddMissingNestedDependencies

func DisableAddMissingNestedDependencies() ProcessorOption

func DisableCreateConcreteSingleFetchTypes

func DisableCreateConcreteSingleFetchTypes() ProcessorOption

func DisableCreateParallelNodes

func DisableCreateParallelNodes() ProcessorOption

func DisableDeduplicateSingleFetches

func DisableDeduplicateSingleFetches() ProcessorOption

func DisableExtractFetches

func DisableExtractFetches() ProcessorOption

func DisableMergeFields

func DisableMergeFields() ProcessorOption

func DisableResolveInputTemplates

func DisableResolveInputTemplates() ProcessorOption

type ResponseTreeProcessor

type ResponseTreeProcessor interface {
	Process(node resolve.Node)
	ProcessSubscription(node resolve.Node)
}

Jump to

Keyboard shortcuts

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