generated

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 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 {
	BookTest struct {
		ID    func(childComplexity int) int
		Title func(childComplexity int) int
	}

	MutationTest struct {
		UpdateUsers func(childComplexity int) int
	}

	QueryTest struct {
		Books func(childComplexity int) int
		Users func(childComplexity int) int
	}

	UserTest struct {
		Books func(childComplexity int) int
		ID    func(childComplexity int) int
		Name  func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationTestResolver

type MutationTestResolver interface {
	UpdateUsers(ctx context.Context) ([]*model.UserTest, error)
}

type QueryTestResolver

type QueryTestResolver interface {
	Users(ctx context.Context) ([]*model.UserTest, error)
	Books(ctx context.Context) ([]*model.BookTest, error)
}

type ResolverRoot

type ResolverRoot interface {
	MutationTest() MutationTestResolver
	QueryTest() QueryTestResolver
}

Jump to

Keyboard shortcuts

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