graphql

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package graphql provides wrappers for graphQL API objects.

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]interface{} `json:"variables,omitempty"`
}

Request is used to build a GraphQL query.

type Response

type Response[T any] struct {
	Data   T                `json:"data,omitempty"`
	Errors []gqlerror.Error `json:"errors,omitempty"`
}

Response is the standard object returned by a GraphQL API.

Jump to

Keyboard shortcuts

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