Documentation
¶
Index ¶
- func MaxDepth(doc *ast.QueryDocument, operationName string) (int, error)
- func Operation(doc *ast.QueryDocument, name string) (*ast.OperationDefinition, error)
- func OperationDepth(doc *ast.QueryDocument, operation *ast.OperationDefinition) (int, error)
- func Parse(query string) (*ast.QueryDocument, error)
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.