graphql

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidReference = errors.New("Invalid Schema Reference")
)

Functions

func Register

func Register(roots *yggdrasil.Roots, schema Schema) error

Types

type Request

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

type Response

type Response struct {
	*graphql.Response
}

func Execute

func Execute(tree yggdrasil.Tree, schema Schema, request Request) *Response

type Schema

type Schema struct {
	graphql.ExecutableSchema
}

func MustReference

func MustReference(tree yggdrasil.Tree) Schema

func NewSchema

func NewSchema(executableSchema graphql.ExecutableSchema) Schema

func Reference

func Reference(tree yggdrasil.Tree) (Schema, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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