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 { Dress struct { Colors func(childComplexity int) int CreateAt func(childComplexity int) int Currency func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int Owner func(childComplexity int) int Price func(childComplexity int) int Sizes func(childComplexity int) int Sku func(childComplexity int) int Stock func(childComplexity int) int Title func(childComplexity int) int } Food struct { CreateAt func(childComplexity int) int Currency func(childComplexity int) int Description func(childComplexity int) int ExpireAt func(childComplexity int) int ID func(childComplexity int) int Owner func(childComplexity int) int Price func(childComplexity int) int Sku func(childComplexity int) int Stock func(childComplexity int) int Title func(childComplexity int) int } Mutation struct { CreateDress func(childComplexity int, input models.NewDress) int CreateFood func(childComplexity int, input models.NewFood) int CreateSeller func(childComplexity int, input models.NewSeller) int CreateSoftware func(childComplexity int, input models.NewSoftware) int } Query struct { Dress func(childComplexity int, id string) int Food func(childComplexity int, id string) int Product func(childComplexity int, id string) int Seller func(childComplexity int, id string) int Sellers func(childComplexity int, limit int, offer int) int Software func(childComplexity int, id string) int SoftwareBundles func(childComplexity int, list []string) int } Seller struct { Description func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Slug func(childComplexity int) int } Software struct { Code func(childComplexity int) int CreateAt func(childComplexity int) int Currency func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int License func(childComplexity int) int Owner func(childComplexity int) int Price func(childComplexity int) int Sku func(childComplexity int) int Stock func(childComplexity int) int Title func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { CreateDress(ctx context.Context, input models.NewDress) (*models.Dress, error) CreateFood(ctx context.Context, input models.NewFood) (*models.Food, error) CreateSeller(ctx context.Context, input models.NewSeller) (*models.Seller, error) CreateSoftware(ctx context.Context, input models.NewSoftware) (*models.Software, error) }
type QueryResolver ¶
type QueryResolver interface { Product(ctx context.Context, id string) (models.SearchResult, error) Dress(ctx context.Context, id string) (*models.Dress, error) Food(ctx context.Context, id string) (*models.Food, error) Seller(ctx context.Context, id string) (*models.Seller, error) Sellers(ctx context.Context, limit int, offer int) ([]models.Seller, error) Software(ctx context.Context, id string) (*models.Software, error) SoftwareBundles(ctx context.Context, list []string) ([]models.Software, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.