querymodel

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParsingOption

type ParsingOption struct {
	// The path from the root to the array. This is dot-delimited
	DataPath string `json:"dataPath"`
	// the time path relative to the data path.
	TimePath string `json:"timePath"`
}

type QueryModel

type QueryModel struct {
	QueryText string `json:"queryText"`
	// The name of the operation, or a blank string to let the GraphQL server infer the operation name
	OperationName string `json:"operationName"`
	// The variables for the operation. May either be a string or a map[string]interface{}
	Variables      interface{}     `json:"variables"`
	ParsingOptions []ParsingOption `json:"parsingOptions"`
}

QueryModel represents data sent from the frontend to perform a query

Jump to

Keyboard shortcuts

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