generated

package
v0.0.0-...-e498ba9 Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 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 {
	Board struct {
		ID    func(childComplexity int) int
		Lists func(childComplexity int) int
		Name  func(childComplexity int) int
	}

	Card struct {
		DueDate       func(childComplexity int) int
		ID            func(childComplexity int) int
		Name          func(childComplexity int) int
		ParentBoardID func(childComplexity int) int
		ParentListID  func(childComplexity int) int
	}

	CardMetaData struct {
		DueDate func(childComplexity int) int
		ID      func(childComplexity int) int
		Name    func(childComplexity int) int
	}

	List struct {
		Cards         func(childComplexity int) int
		ID            func(childComplexity int) int
		Name          func(childComplexity int) int
		ParentBoardID func(childComplexity int) int
	}

	Mutation struct {
		ArchiveCard     func(childComplexity int, card model.CardIdentifier) int
		ArchiveList     func(childComplexity int, list model.ListIdentifier) int
		CreateBoard     func(childComplexity int, board model.NewBoard) int
		CreateCard      func(childComplexity int, card model.NewCard) int
		CreateList      func(childComplexity int, list model.NewList) int
		DeleteCard      func(childComplexity int, card model.CardIdentifier) int
		DeleteList      func(childComplexity int, list model.ListIdentifier) int
		UpdateCardOrder func(childComplexity int, changeCardOrder model.ChangeCardOrder) int
		UpdateListOrder func(childComplexity int, changeListOrder model.ChangeListOrder) int
	}

	Query struct {
		GetBoard func(childComplexity int, id string) int
		GetCard  func(childComplexity int, id string) int
		GetList  func(childComplexity int, id string) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	CreateCard(ctx context.Context, card model.NewCard) (*model.Card, error)
	CreateList(ctx context.Context, list model.NewList) (*model.List, error)
	CreateBoard(ctx context.Context, board model.NewBoard) (*model.Board, error)
	UpdateCardOrder(ctx context.Context, changeCardOrder model.ChangeCardOrder) (bool, error)
	UpdateListOrder(ctx context.Context, changeListOrder model.ChangeListOrder) (bool, error)
	ArchiveCard(ctx context.Context, card model.CardIdentifier) (bool, error)
	ArchiveList(ctx context.Context, list model.ListIdentifier) (bool, error)
	DeleteCard(ctx context.Context, card model.CardIdentifier) (bool, error)
	DeleteList(ctx context.Context, list model.ListIdentifier) (bool, error)
}

type QueryResolver

type QueryResolver interface {
	GetCard(ctx context.Context, id string) (*model.Card, error)
	GetList(ctx context.Context, id string) (*model.List, error)
	GetBoard(ctx context.Context, id string) (*model.Board, 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