Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSchema ¶
func NewSchema(opts ...Option) graphql.ExecutableSchema
NewSchema creates a graphql executable schema.
Types ¶
type Option ¶
type Option func(*Resolver)
func WithDeploymentService ¶
func WithDeploymentService(deployment *deployment.Service) Option
WithDeploymentService sets the deployment service on the resolver.
func WithEntClient ¶
WithEntClient sets the ent client on the resolver.
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
NewResolver creates a new resolver with the given options.
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() generated.MutationResolver
Mutation returns generated.MutationResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() generated.QueryResolver
Query returns generated.QueryResolver implementation.
Click to show internal directories.
Click to hide internal directories.