Module query

Source
Expand description

Query language AST and parsing utilities

Structs§

Directive
Document
Root of query data
Field
FragmentDefinition
FragmentSpread
InlineFragment
Mutation
Number
This represents integer number
ParseError
Error parsing query
Query
SelectionSet
Subscription
VariableDefinition

Enums§

Definition
OperationDefinition
Selection
Type
TypeCondition
Value

Traits§

Text
Text abstracts over types that hold a string value. It is used to make the AST generic over the string type.

Functions§

consume_definition
Parses a single ExecutableDefinition and returns an AST as well as the remainder of the input which is unparsed
minify_query
parse_query
Parses a piece of query language and returns an AST