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
}
Click to show internal directories.
Click to hide internal directories.