client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

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

type Response

type Response struct {
	Data   json.RawMessage        `json:"data"`
	Errors []printer.GraphQLError `json:"errors"`
}

func Execute

func Execute(ep *config.Endpoint, query string, variables map[string]any, extraHeaders map[string]string) (*Response, error)

Execute sends a GraphQL request. Header priority: config headers < stored credential < extraHeaders (CLI -H flags).

Jump to

Keyboard shortcuts

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