graphql

package
v0.0.0-...-88b10d6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context, store *core.Transaction, schema *ast.Schema, params QueryParams) (datamodel.Node, error)

Execute runs the query and returns a node containing the result of the query operation.

Types

type QueryParams

type QueryParams struct {
	Query         string         `json:"query"`
	OperationName string         `json:"operationName"`
	Variables     map[string]any `json:"variables"`
}

QueryParams contains all of the parameters for a query.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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