Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllActions = []Actions{ ActionsAdd, ActionsRemove, }
View Source
var AllItemTypes = []ItemTypes{ ItemTypesAppetizer, ItemTypesEntree, ItemTypesDessert, }
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Info struct { Address func(childComplexity int) int Hours func(childComplexity int) int } Item struct { Action func(childComplexity int) int CreatedAt func(childComplexity int) int ItemType func(childComplexity int) int Name func(childComplexity int) int } Mutation struct { MutateItem func(childComplexity int, itemType ItemTypes, name string, action Actions) int UpdateInfo func(childComplexity int, hours string, address string) int } Query struct { AllInfo func(childComplexity int) int Items func(childComplexity int) int } Subscription struct { InfoChanged func(childComplexity int) int ItemChanged func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { Deprecated func(ctx context.Context, obj interface{}, next graphql.Resolver, reason *string) (res interface{}, err error) Include func(ctx context.Context, obj interface{}, next graphql.Resolver, ifArg bool) (res interface{}, err error) Skip func(ctx context.Context, obj interface{}, next graphql.Resolver, ifArg bool) (res interface{}, err error) }
type ItemTypes ¶
type ItemTypes string
func (ItemTypes) MarshalGQL ¶
func (*ItemTypes) UnmarshalGQL ¶
type MutationResolver ¶
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver Subscription() SubscriptionResolver }
Click to show internal directories.
Click to hide internal directories.