gql

package
v0.0.0-...-7d7277e Latest Latest
Warning

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

Go to latest
Published: May 1, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Int      = graphql.Int
	Float    = graphql.Float
	String   = graphql.String
	Boolean  = graphql.Boolean
	ID       = graphql.ID
	DateTime = graphql.DateTime
)

builtin graphql scalars

Functions

func Arg

func Arg(s string) interfaces.Argument

Arg creates new argument

func Field

func Field(s string) interfaces.Field

Field creates new field

func HasObject

func HasObject(s string) bool

HasObject checks if object exists

func List

func List(o interface{}) graphql.Output

List creates a output list field

func Multiple

func Multiple(o interface{}) graphql.Input

Multiple creates a input list field

func Mutation

func Mutation(c interfaces.Object) schema.Option

Mutation option

func Object

func Object(s string) interfaces.Object

Object creates new object

func Query

func Query(c interfaces.Object) schema.Option

Query option

func Root

func Root() interfaces.Object

Root creates new root object

func Schema

func Schema(opts ...schema.Option) graphql.Schema

Schema creates new schema

func Subscription

func Subscription(c interfaces.Object) schema.Option

Subscription option

func Union

func Union(s string) interfaces.Union

Union creates an union

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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