graphql

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GraphqlQueryCallStack = testutils.NewCallStack()

Functions

This section is empty.

Types

type CodeLocation

type CodeLocation struct {
	Line   uint32 `json:"line"`
	Column uint32 `json:"column"`
}

type ErrorResult

type ErrorResult struct {
	Message   string         `json:"message"`
	Locations []CodeLocation `json:"locations"`
	Path      []string       `json:"path"`
}

type Response

type Response[T any] struct {
	Errors []ErrorResult `json:"errors"`
	Data   *T            `json:"data"`
}

func Execute

func Execute[T any](hostName, statement string, variables map[string]any) (*Response[T], error)

Jump to

Keyboard shortcuts

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