Versions in this module Expand all Collapse all v2 v2.0.2 Jan 29, 2024 v2.0.1 Jan 29, 2024 Changes in this version + var ErrTypeNotFound = errors.New("type not found") + var ErrUnknownType = errors.New("unknown type") + func NewExecutableSchema(cfg Config) graphql.ExecutableSchema + type ComplexityRoot struct + Cat struct{ ... } + Entity struct{ ... } + Mutation struct{ ... } + Product struct{ ... } + Query struct{ ... } + Question struct{ ... } + Rating struct{ ... } + Review struct{ ... } + User struct{ ... } + Video struct{ ... } + type Config struct + Complexity ComplexityRoot + Directives DirectiveRoot + Resolvers ResolverRoot + type DirectiveRoot struct + type EntityResolver interface + FindProductByUpc func(ctx context.Context, upc string) (*model.Product, error) + FindUserByID func(ctx context.Context, id string) (*model.User, error) + type MutationResolver interface + AddReview func(ctx context.Context, authorID string, upc string, review string) (*model.Review, error) + type ProductResolver interface + Reviews func(ctx context.Context, obj *model.Product) ([]*model.Review, error) + type QueryResolver interface + Cat func(ctx context.Context) (*model.Cat, error) + Me func(ctx context.Context) (*model.User, error) + type ResolverRoot interface + Entity func() EntityResolver + Mutation func() MutationResolver + Product func() ProductResolver + Query func() QueryResolver + Review func() ReviewResolver + User func() UserResolver + type ReviewResolver interface + Attachments func(ctx context.Context, obj *model.Review) ([]model.Attachment, error) + type UserResolver interface + RealName func(ctx context.Context, obj *model.User) (string, error) + Reviews func(ctx context.Context, obj *model.User) ([]*model.Review, error) + Username func(ctx context.Context, obj *model.User) (string, error)