graphql

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

graphql client:

func NewClient

func NewClient(url string, httpClient *http.Client, opts ...gqV2.ClientOption) *Client

func (*Client) Mutation

func (m *Client) Mutation(ctx context.Context, payload interface{}, variables map[string]interface{}) error

HTTP POST: create

func (*Client) Query

func (m *Client) Query(ctx context.Context, query interface{}, variables map[string]interface{}) error

HTTP GET: get

func (*Client) QueryRaw

func (m *Client) QueryRaw(ctx context.Context, req *gqV2.Request, resp interface{}) (err error)

HTTP GET: by raw query string

Jump to

Keyboard shortcuts

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