querymodel

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 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 LabelOption added in v0.0.3

type LabelOption struct {
	Name  string          `json:"name"`
	Type  LabelOptionType `json:"type"`
	Value string          `json:"value"`
}

type LabelOptionType added in v0.0.3

type LabelOptionType string
const (
	CONSTANT LabelOptionType = "constant"
	FIELD    LabelOptionType = "field"
)

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"`
	LabelOptions []LabelOption `json:"labelOptions"`
}

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