Documentation ¶
Overview ¶
This file will not be regenerated automatically.
It serves as dependency injection for your app, add any dependencies you require here.
Index ¶
- Variables
- func GraphQLEndpointHandler(opts EndpointOptions) http.Handler
- type EndpointOptions
- type Resolver
- func (r *Resolver) Entity() generated.EntityResolver
- func (r *Resolver) Mutation() generated.MutationResolver
- func (r *Resolver) Product() generated.ProductResolver
- func (r *Resolver) Query() generated.QueryResolver
- func (r *Resolver) Review() generated.ReviewResolver
- func (r *Resolver) User() generated.UserResolver
Constants ¶
This section is empty.
Variables ¶
View Source
var TestOptions = EndpointOptions{ EnableDebug: false, }
Functions ¶
func GraphQLEndpointHandler ¶
func GraphQLEndpointHandler(opts EndpointOptions) http.Handler
Types ¶
type EndpointOptions ¶
type EndpointOptions struct {
EnableDebug bool
}
type Resolver ¶
type Resolver struct{}
func (*Resolver) Entity ¶
func (r *Resolver) Entity() generated.EntityResolver
Entity returns generated.EntityResolver implementation.
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() generated.MutationResolver
Mutation returns generated.MutationResolver implementation.
func (*Resolver) Product ¶
func (r *Resolver) Product() generated.ProductResolver
Product returns generated.ProductResolver implementation.
func (*Resolver) Query ¶ added in v1.64.0
func (r *Resolver) Query() generated.QueryResolver
Query returns generated.QueryResolver implementation.
func (*Resolver) Review ¶ added in v1.64.0
func (r *Resolver) Review() generated.ReviewResolver
Review returns generated.ReviewResolver implementation.
func (*Resolver) User ¶
func (r *Resolver) User() generated.UserResolver
User returns generated.UserResolver implementation.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.