generated

package
v0.0.0-...-d92ad30 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

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 CollectionResolver interface {
	ImageIds(ctx context.Context, obj *model.Collection) (*string, error)
	ItemIds(ctx context.Context, obj *model.Collection) (*string, error)
}

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
}

Jump to

Keyboard shortcuts

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