graphql

package
v0.64.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteGraphQLWithoutResponse added in v0.13.0

func ExecuteGraphQLWithoutResponse(gql string, config *types.BaseConfig) error

func NewClient added in v0.35.0

func NewClient(config *types.BaseConfig) *graphql.Client

func ParseErrors added in v0.37.0

func ParseErrors(err error) error

Types

type Error

type Error struct {
	Message string `json:"message"`
}

type GraphqlResponse

type GraphqlResponse struct {
	Data   interface{} `json:"data"`
	Errors []Error     `json:"errors"`
}

func ExecuteGraphQL

func ExecuteGraphQL(gql string, config *types.BaseConfig, resultObject interface{}) (*GraphqlResponse, error)

Jump to

Keyboard shortcuts

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