generated

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 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 {
	Person struct {
		Name func(childComplexity int) int
	}

	Query struct {
		Person        func(childComplexity int) int
		User          func(childComplexity int, limit *int, offset *int, orderBy []*model.UserOrdering, filter *model.UserFilterInput) int
		UserAggregate func(childComplexity int, groupBy []model.UserGroupBy, filter *model.UserFilterInput, limit *int, offset *int, orderBy []*model.UsersAggregateOrdering) int
	}

	User struct {
		Age                func(childComplexity int) int
		Name               func(childComplexity int) int
		SomeInnerValue     func(childComplexity int) int
		SomeInnerValueList func(childComplexity int, limit *int, offset *int, orderBy []*model.UserOrdering, filter *model.UserFilterInput) int
	}

	UsersAggregate struct {
		Avg   func(childComplexity int) int
		Count func(childComplexity int) int
		Group func(childComplexity int) int
		Max   func(childComplexity int) int
		Min   func(childComplexity int) int
		Sum   func(childComplexity int) int
	}

	UsersAggregatesAggregate struct {
		Avg   func(childComplexity int) int
		Count func(childComplexity int) int
		Group func(childComplexity int) int
		Max   func(childComplexity int) int
		Min   func(childComplexity int) int
		Sum   func(childComplexity int) int
	}
	// contains filtered or unexported fields
}

type Config

type Config struct {
	Schema     *ast.Schema
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
	FastgqlField func(ctx context.Context, obj any, next graphql.Resolver, skipSelect *bool) (res any, err error)
}

type QueryResolver

type QueryResolver interface {
	Person(ctx context.Context) (*model.Person, error)
	User(ctx context.Context, limit *int, offset *int, orderBy []*model.UserOrdering, filter *model.UserFilterInput) ([]*model.User, error)
	UserAggregate(ctx context.Context, groupBy []model.UserGroupBy, filter *model.UserFilterInput, limit *int, offset *int, orderBy []*model.UsersAggregateOrdering) ([]model.UsersAggregate, error)
}

type ResolverRoot

type ResolverRoot interface {
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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