graphql

package
v0.0.0-...-dc6e3ae Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

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