dgraphql

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 9 Imported by: 1

README

dgraphql

GraphQL Client for Dgraph

Documentation

Index

Constants

View Source
const ClientTimeout = 20 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient added in v0.0.3

func NewClient(url, token string) *Client

func (*Client) DQL added in v0.0.3

func (c *Client) DQL(ctx context.Context, q string, result interface{}) error

Same as above, but with different headers and query string format for DQL

func (*Client) GraphQL added in v0.0.3

func (c *Client) GraphQL(ctx context.Context, q string, result interface{}) error

func (*Client) RDF added in v0.0.3

func (c *Client) RDF(ctx context.Context, q string, result interface{}) error

type Request added in v0.0.3

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

Jump to

Keyboard shortcuts

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