generated

package
v0.0.0-...-f8f0079 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownType  = errors.New("unknown type")
	ErrTypeNotFound = errors.New("type not found")
)

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type ComplexityRoot

type ComplexityRoot struct {
	Account struct {
		CreatedAt func(childComplexity int) int
		ID        func(childComplexity int) int
		Name      func(childComplexity int) int
		Tennants  func(childComplexity int) int
	}

	AccountConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	AccountEdge struct {
		Cursor func(childComplexity int) int
		Node   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
	}

	Query struct {
		Accounts func(childComplexity int, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *ent.AccountWhereInput) int
		Example  func(childComplexity int, tenantIds []*string) int
		Node     func(childComplexity int, id uuid.UUID) int
		Nodes    func(childComplexity int, ids []uuid.UUID) int
		Tennants func(childComplexity int, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *ent.TennantWhereInput) int
		// contains filtered or unexported fields
	}

	Tennant struct {
		Account    func(childComplexity int) int
		AccountID  func(childComplexity int) int
		Cloud      func(childComplexity int) int
		CreatedAt  func(childComplexity int) int
		ExternalId func(childComplexity int) int
		ID         func(childComplexity int) int
	}

	TennantConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	TennantEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}
	// contains filtered or unexported fields
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type QueryResolver

type QueryResolver interface {
	Node(ctx context.Context, id uuid.UUID) (ent.Noder, error)
	Nodes(ctx context.Context, ids []uuid.UUID) ([]ent.Noder, error)
	Accounts(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *ent.AccountWhereInput) (*ent.AccountConnection, error)
	Tennants(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *ent.TennantWhereInput) (*ent.TennantConnection, error)
	Example(ctx context.Context, tenantIds []*string) ([]*ent.Account, 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