resolver

package
v0.0.0-...-a62c2ef Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldResolverInitializer

type FieldResolverInitializer func(*TypeStorage, app.Container)

type GQLType

type GQLType string

GQLType is registered GraphQL object type

type RootMutation

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

RootMutation is field resolver aggregation for RootMutation type

func (*RootMutation) UpdateUser

func (t *RootMutation) UpdateUser(p graphql.ResolveParams) (interface{}, error)

UpdateUser is implementation for "updateUser" field in RootMutation type

type RootQuery

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

RootQuery is field resolver aggregation for RootQuery type

func (*RootQuery) Operator

func (t *RootQuery) Operator(p graphql.ResolveParams) (interface{}, error)

Operator is implementation for "operator" field in RootQuery type

type TypeStorage

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

TypeStorage provides stores GraphQL type definitions

func InitializeTypes

func InitializeTypes(container app.Container) *TypeStorage

InitializeTypes provides user definition GraphQL types initialization

func (*TypeStorage) Get

func (s *TypeStorage) Get(n GQLType) *graphql.Object

Get returns graphql.Object which matches by given name

func (*TypeStorage) Register

func (s *TypeStorage) Register(name string, fieldList ...*graphql.Field)

Register provides building graphql.Object and setting it

func (*TypeStorage) SetupResolvers

func (s *TypeStorage) SetupResolvers(c app.Container, fns ...FieldResolverInitializer)

Jump to

Keyboard shortcuts

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