generated

package
v0.0.0-...-afd6d5e Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: MIT 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 ComplexityRoot

type ComplexityRoot struct {
	BacklogItem struct {
		ID         func(childComplexity int) int
		StoryPoint func(childComplexity int) int
		Summary    func(childComplexity int) int
		Type       func(childComplexity int) int
	}

	Mutation struct {
		CreateBacklog func(childComplexity int, input model.NewBacklogItem) int
	}

	Query struct {
		BacklogItems 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 {
	CreateBacklog(ctx context.Context, input model.NewBacklogItem) (*model.BacklogItem, error)
}

type QueryResolver

type QueryResolver interface {
	BacklogItems(ctx context.Context) ([]*model.BacklogItem, 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