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 { Card struct { Ancestors func(childComplexity int) int CardSpecialColor func(childComplexity int) int CardSpecialColorID func(childComplexity int) int CardType func(childComplexity int) int CardTypeID func(childComplexity int) int Children func(childComplexity int) int Cost func(childComplexity int) int Deck func(childComplexity int) int DeckID func(childComplexity int) int Description func(childComplexity int) int HasActionsBoosterIcon func(childComplexity int) int HasArrow func(childComplexity int) int HasBonusPointIcon func(childComplexity int) int HasBreadIcon func(childComplexity int) int HasBuildingResourceProviderIcon func(childComplexity int) int HasCropProviderIcon func(childComplexity int) int HasCutPeatIcon func(childComplexity int) int HasFarmPlannerIcon func(childComplexity int) int HasFellTreesIcon func(childComplexity int) int HasFoodProviderIcon func(childComplexity int) int HasGoodsProviderIcon func(childComplexity int) int HasHiringFareIcon func(childComplexity int) int HasLivestockProviderIcon func(childComplexity int) int HasNegativeBonusPointIcon func(childComplexity int) int HasPanIcon func(childComplexity int) int HasPointsProviderIcon func(childComplexity int) int HasSlashAndBurnIcon func(childComplexity int) int ID func(childComplexity int) int IsOfficialJa func(childComplexity int) int LiteralID func(childComplexity int) int MinPlayersNumber func(childComplexity int) int NameEn func(childComplexity int) int NameJa func(childComplexity int) int Note func(childComplexity int) int PlayAgricolaCardID func(childComplexity int) int Prerequisite func(childComplexity int) int PrintedID func(childComplexity int) int Products func(childComplexity int) int Revision func(childComplexity int) int RevisionID func(childComplexity int) int SpecialVictoryPoint func(childComplexity int) int VictoryPoint func(childComplexity int) int } CardConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } CardEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } CardSpecialColor struct { Cards func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.CardWhereInput) int ID func(childComplexity int) int Key func(childComplexity int) int NameEn func(childComplexity int) int NameJa func(childComplexity int) int } CardType struct { Cards func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.CardWhereInput) int ID func(childComplexity int) int Key func(childComplexity int) int NameEn func(childComplexity int) int NameJa func(childComplexity int) int } Deck struct { Cards func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.CardWhereInput) int ID func(childComplexity int) int Key func(childComplexity int) int NameEn func(childComplexity int) int NameJa func(childComplexity int) int Revision func(childComplexity int) int RevisionID 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 } Product struct { Cards func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.CardWhereInput) int ID func(childComplexity int) int IsOfficialJa func(childComplexity int) int NameEn func(childComplexity int) int NameJa func(childComplexity int) int PublishedYear func(childComplexity int) int Revision func(childComplexity int) int RevisionID func(childComplexity int) int } Query struct { CardSpecialColors func(childComplexity int) int CardTypes func(childComplexity int) int Cards func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.CardWhereInput) int Decks func(childComplexity int) int Node func(childComplexity int, id int) int Nodes func(childComplexity int, ids []int) int Products func(childComplexity int) int Revisions func(childComplexity int) int } Revision struct { Cards func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.CardWhereInput) int Decks func(childComplexity int) int ID func(childComplexity int) int Key func(childComplexity int) int NameEn func(childComplexity int) int NameJa func(childComplexity int) int Products func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type QueryResolver ¶
type QueryResolver interface { Node(ctx context.Context, id int) (ent.Noder, error) Nodes(ctx context.Context, ids []int) ([]ent.Noder, error) Cards(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.CardWhereInput) (*ent.CardConnection, error) CardSpecialColors(ctx context.Context) ([]*ent.CardSpecialColor, error) CardTypes(ctx context.Context) ([]*ent.CardType, error) Decks(ctx context.Context) ([]*ent.Deck, error) Products(ctx context.Context) ([]*ent.Product, error) Revisions(ctx context.Context) ([]*ent.Revision, error) }
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}
Click to show internal directories.
Click to hide internal directories.