generated

package
v0.0.0-...-ef346fd Latest Latest
Warning

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

Go to latest
Published: Aug 25, 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 {
	DeleteNotePayload struct {
		ID func(childComplexity int) int
	}

	DeleteTodoPayload struct {
		ID     func(childComplexity int) int
		NoteID func(childComplexity int) int
	}

	Mutation struct {
		AddNote     func(childComplexity int, input gmodel.AddNoteInput) int
		AddTodo     func(childComplexity int, input gmodel.AddTodoInput) int
		DeleteNote  func(childComplexity int, input *gmodel.DeleteNoteInput) int
		DeleteTodo  func(childComplexity int, input gmodel.DeleteTodoInput) int
		PlaceHolder func(childComplexity int) int
		ToggleTodo  func(childComplexity int, input gmodel.ToggleTodoInput) int
		UpdateNote  func(childComplexity int, input gmodel.UpdateNoteInput) int
		UpdateTodo  func(childComplexity int, input gmodel.UpdateTodoInput) int
	}

	Note struct {
		ID    func(childComplexity int) int
		Name  func(childComplexity int) int
		Todos func(childComplexity int) int
	}

	Query struct {
		Note        func(childComplexity int, id int) int
		Notes       func(childComplexity int) int
		PlaceHolder func(childComplexity int) int
		Todos       func(childComplexity int, noteID int) int
	}

	Todo struct {
		Done   func(childComplexity int) int
		ID     func(childComplexity int) int
		Name   func(childComplexity int) int
		NoteID 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 {
	PlaceHolder(ctx context.Context) (*bool, error)
	AddNote(ctx context.Context, input gmodel.AddNoteInput) (*gmodel.Note, error)
	UpdateNote(ctx context.Context, input gmodel.UpdateNoteInput) (*gmodel.Note, error)
	DeleteNote(ctx context.Context, input *gmodel.DeleteNoteInput) (*gmodel.DeleteNotePayload, error)
	AddTodo(ctx context.Context, input gmodel.AddTodoInput) (*gmodel.Todo, error)
	UpdateTodo(ctx context.Context, input gmodel.UpdateTodoInput) (*gmodel.Todo, error)
	DeleteTodo(ctx context.Context, input gmodel.DeleteTodoInput) (*gmodel.DeleteTodoPayload, error)
	ToggleTodo(ctx context.Context, input gmodel.ToggleTodoInput) (*gmodel.Todo, error)
}

type QueryResolver

type QueryResolver interface {
	PlaceHolder(ctx context.Context) (*bool, error)
	Notes(ctx context.Context) ([]*gmodel.Note, error)
	Note(ctx context.Context, id int) (*gmodel.Note, error)
	Todos(ctx context.Context, noteID int) ([]*gmodel.Todo, 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