graphql

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "graphql"

Variables

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

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, out chan query.Result, limit int)

func (*Session) FormatREPL

func (s *Session) FormatREPL(result query.Result) string

Jump to

Keyboard shortcuts

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