graphql

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgMapping

type ArgMapping struct {
	TargetArgName string `json:"targetArgName" yaml:"targetArgName"`
	SchemaID      string `json:"schemaId" yaml:"schemaId"`
	SourceArgPath string `json:"sourceArgPath" yaml:"sourceArgPath"`
	TargetArgPath string `json:"targetArgPath" yaml:"targetArgPath"`
}

type JSONError

type JSONError struct {
	Message    string                 `json:"message"`
	Extensions map[string]interface{} `json:"extensions"`
}

func (*JSONError) Error

func (e *JSONError) Error() string

Error implements the error interface (required)

type Request

type Request struct {
	Query         string                 `json:"query"`
	Variables     map[string]interface{} `json:"variables,omitempty"`
	OperationName string                 `json:"operationName,omitempty"`
}

Request GraphQLRequest represents a GraphQL request payload.

type Response

type Response struct {
	Data   map[string]interface{} `json:"data"`
	Errors []interface{}          `json:"errors,omitempty"`
}

Jump to

Keyboard shortcuts

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