parser

package
v2.5.64 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 5 Imported by: 228 modules, 156 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const MaxNestingDepth = 1000

MaxNestingDepth is the deepest that selection sets, list and object values, and list types may nest, all counted together. The parser recurses once per level, and exhausting the goroutine stack is a fatal runtime error that recover cannot catch, so deeper input is rejected with a parse error instead. Real documents nest a few dozen levels; the stack runs out at several hundred thousand.

Variables

This section is empty.

Functions

func ParseQuery

func ParseQuery(source *Source) (*QueryDocument, error)

func ParseQueryWithTokenLimit added in v2.5.14

func ParseQueryWithTokenLimit(source *Source, maxTokenLimit int) (*QueryDocument, error)

func ParseSchema

func ParseSchema(source *Source) (*SchemaDocument, error)

func ParseSchemaWithLimit added in v2.5.15

func ParseSchemaWithLimit(source *Source, maxTokenLimit int) (*SchemaDocument, error)

func ParseSchemas

func ParseSchemas(inputs ...*Source) (*SchemaDocument, error)

func ParseSchemasWithLimit added in v2.5.15

func ParseSchemasWithLimit(maxTokenLimit int, inputs ...*Source) (*SchemaDocument, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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