Versions in this module Expand all Collapse all v1 v1.41.0 Jun 27, 2022 Changes in this version + func NormalizeDefinition(definition *ast.Document, report *operationreport.Report) + func NormalizeNamedOperation(operation, definition *ast.Document, operationName []byte, ...) + func NormalizeOperation(operation, definition *ast.Document, report *operationreport.Report) + func NormalizeSubgraphSDL(definition *ast.Document, report *operationreport.Report) + type DefinitionNormalizer struct + func NewDefinitionNormalizer() *DefinitionNormalizer + func NewSubgraphDefinitionNormalizer() *DefinitionNormalizer + func (o *DefinitionNormalizer) NormalizeDefinition(definition *ast.Document, report *operationreport.Report) + type Depth struct + Depth int + SpreadName ast.ByteSlice + SpreadRef int + type Depths []Depth + func (d Depths) ByRef(ref int) (int, bool) + type FragmentDefinitionRemoval struct + type FragmentSpreadDepth struct + func (r *FragmentSpreadDepth) Get(operation, definition *ast.Document, report *operationreport.Report, ...) + type OperationNormalizer struct + func NewNormalizer(removeFragmentDefinitions, extractVariables bool) *OperationNormalizer + func NewWithOpts(opts ...Option) *OperationNormalizer + func (o *OperationNormalizer) NormalizeNamedOperation(operation, definition *ast.Document, operationName []byte, ...) + func (o *OperationNormalizer) NormalizeOperation(operation, definition *ast.Document, report *operationreport.Report) + type Option func(options *options) + func WithExtractVariables() Option + func WithNormalizeDefinition() Option + func WithRemoveFragmentDefinitions() Option + func WithRemoveUnusedVariables() Option + type SubgraphSDLNormalizer struct + func NewSubgraphSDLNormalizer() *SubgraphSDLNormalizer + func (s *SubgraphSDLNormalizer) NormalizeSubgraphSDL(definition *ast.Document, report *operationreport.Report)