generated

package
v0.0.0-...-77b0776 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 13 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 {
	Mutation struct {
		Test func(childComplexity int) int
	}

	PageInfo struct {
		EndCursor       func(childComplexity int) int
		HasNextPage     func(childComplexity int) int
		HasPreviousPage func(childComplexity int) int
		StartCursor     func(childComplexity int) int
	}

	PrivateUser struct {
		UserInfo func(childComplexity int) int
	}

	Query struct {
		Me    func(childComplexity int) int
		Users func(childComplexity int, uuids []gqlutil.UUID) int
	}

	User struct {
		Name func(childComplexity int) int
		UUID func(childComplexity int) int
	}

	UserConnection struct {
		Edges    func(childComplexity int) int
		PageInfo func(childComplexity int) int
	}

	UserEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}
}

type Config

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

type DirectiveRoot

type DirectiveRoot struct {
	IsAuthenticated func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
	Locale          func(ctx context.Context, obj interface{}, next graphql.Resolver, lang model.Languages) (res interface{}, err error)
	RateLimitByUser func(ctx context.Context, obj interface{}, next graphql.Resolver, limit int, duration int) (res interface{}, err error)
}

type MutationResolver

type MutationResolver interface {
	Test(ctx context.Context) (string, error)
}

type QueryResolver

type QueryResolver interface {
	Me(ctx context.Context) (*model.PrivateUser, error)
	Users(ctx context.Context, uuids []gqlutil.UUID) ([]*model.User, 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