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 { Cabinet struct { Count func(childComplexity int) int Game func(childComplexity int) int GameID func(childComplexity int) int ID func(childComplexity int) int Location func(childComplexity int) int LocationID func(childComplexity int) int } Game struct { ID func(childComplexity int) int Name func(childComplexity int) int } Location struct { Cabinets func(childComplexity int) int Coordinate func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int RawAddress func(childComplexity int) int } LocationConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } LocationEdge 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 { Locations func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *ent.LocationWhereInput) int Node func(childComplexity int, id string) int Nodes func(childComplexity int, ids []string) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type LocationWhereInputResolver ¶
type LocationWhereInputResolver interface {
CoordinateWithin(ctx context.Context, obj *ent.LocationWhereInput, data *model.CoordinateWithin) error
}
type QueryResolver ¶
type QueryResolver interface { Node(ctx context.Context, id string) (ent.Noder, error) Nodes(ctx context.Context, ids []string) ([]ent.Noder, error) Locations(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *ent.LocationWhereInput) (*ent.LocationConnection, error) }
type Resolver ¶
type Resolver struct {
ResolverDeps
}
func (*Resolver) LocationWhereInput ¶
func (r *Resolver) LocationWhereInput() LocationWhereInputResolver
LocationWhereInput returns LocationWhereInputResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { Query() QueryResolver LocationWhereInput() LocationWhereInputResolver }
Click to show internal directories.
Click to hide internal directories.