graphql

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaxDepth

func MaxDepth(doc *ast.QueryDocument, operationName string) (int, error)

MaxDepth returns the maximum selection depth of the selected operation, expanding fragments and inline fragments without adding a level. Cyclic fragments are expanded at most once per branch.

func Operation

func Operation(doc *ast.QueryDocument, name string) (*ast.OperationDefinition, error)

Operation selects the operation to execute. An empty name is only accepted when the document contains exactly one operation.

func OperationDepth

func OperationDepth(doc *ast.QueryDocument, operation *ast.OperationDefinition) (int, error)

OperationDepth returns the maximum selection depth of a single operation.

func Parse

func Parse(query string) (*ast.QueryDocument, error)

Parse parses a GraphQL query document.

Types

This section is empty.

Jump to

Keyboard shortcuts

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