Versions in this module Expand all Collapse all v1 v1.41.0 Jun 27, 2022 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 + Entity struct{ ... } + Mutation struct{ ... } + Product struct{ ... } + Query struct{} + Review struct{ ... } + User 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 ResolverRoot interface + Entity func() EntityResolver + Mutation func() MutationResolver + Product func() ProductResolver + User func() UserResolver + type UserResolver interface + Reviews func(ctx context.Context, obj *model.User) ([]*model.Review, error)