graphql

package
v0.0.0-...-64a9ce5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteQuery

func ExecuteQuery(schema graphql.Schema, query string) (r *graphql.Result, err error)

func GetSchema

func GetSchema(f generic.Factory, serveFunc types.ServeFunc, rn *graph.RootNode) (schema graphql.Schema, err error)

func MustGetHandler

func MustGetHandler(rn *graph.RootNode, f generic.Factory, serverFunc types.ServeFunc) (h http.Handler)

func TestGraphql

func TestGraphql(t *testing.T)

func TypeToEnum

func TypeToEnum(en *graph.EnumNode) (e *graphql.Enum)

func TypeToInputObject

func TypeToInputObject(sCtx SchemaContext, tn *graph.TypeNode) (i *graphql.InputObject)

func TypeToObject

func TypeToObject(sCtx SchemaContext, tn *graph.TypeNode) (i *graphql.Object)

Types

type SchemaContext

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

func (SchemaContext) MustGetEnum

func (c SchemaContext) MustGetEnum(name string) *graphql.Enum

func (SchemaContext) MustGetInputObject

func (c SchemaContext) MustGetInputObject(name string) *graphql.InputObject

func (SchemaContext) MustGetObject

func (c SchemaContext) MustGetObject(name string) *graphql.Object

Jump to

Keyboard shortcuts

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