Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type CollectionResolver ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Collection struct { Document func(childComplexity int) int ID func(childComplexity int) int ImageIds func(childComplexity int) int ItemIds func(childComplexity int) int ParentId func(childComplexity int) int } Mutation struct { AddCollection func(childComplexity int, input model.NewCollection) int AddCollections func(childComplexity int, input []*model.NewCollection) int } Query struct { Collections func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { AddCollection(ctx context.Context, input model.NewCollection) (*model.Collection, error) AddCollections(ctx context.Context, input []*model.NewCollection) ([]*model.Collection, error) }
type QueryResolver ¶
type QueryResolver interface {
Collections(ctx context.Context) ([]*model.Collection, error)
}
type ResolverRoot ¶
type ResolverRoot interface { Collection() CollectionResolver Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.