graphql

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: Apache-2.0 Imports: 16 Imported by: 25

Documentation

Index

Constants

View Source
const Name = "graphql"

Variables

View Source
var (
	ValueKey = "id"
	LimitKey = "first"
	SkipKey  = "offset"
	AnyKey   = "*"
)

Configurable keywords and special field names.

Functions

This section is empty.

Types

type Query

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

func Parse

func Parse(r io.Reader) (*Query, error)

func (*Query) Execute

func (q *Query) Execute(ctx context.Context, qs graph.QuadStore) (map[string]interface{}, error)

type Session

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

func NewSession

func NewSession(qs graph.QuadStore) *Session

func (*Session) Execute

func (s *Session) Execute(ctx context.Context, qu string, opt query.Options) (query.Iterator, error)

Jump to

Keyboard shortcuts

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