generated

package
v0.0.0-...-12dc50b Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: MIT Imports: 11 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 ComplexityRoot

type ComplexityRoot struct {
	Mutation struct {
		CreateTask func(childComplexity int, input model.CreateTaskInput) int
		DeleteTask func(childComplexity int, id string) int
		UpdateTask func(childComplexity int, input model.UpdateTaskInput) int
	}

	Query struct {
		Tasks func(childComplexity int) int
	}

	Task struct {
		Body       func(childComplexity int) int
		Created    func(childComplexity int) int
		Due        func(childComplexity int) int
		ID         func(childComplexity int) int
		Importance func(childComplexity int) int
		Title      func(childComplexity int) int
		Updated    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 {
	CreateTask(ctx context.Context, input model.CreateTaskInput) (*model.Task, error)
	UpdateTask(ctx context.Context, input model.UpdateTaskInput) (*model.Task, error)
	DeleteTask(ctx context.Context, id string) (*model.Task, error)
}

type QueryResolver

type QueryResolver interface {
	Tasks(ctx context.Context) ([]*model.Task, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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