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 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
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)
Click to show internal directories.
Click to hide internal directories.