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 {
}
type Config ¶
type Config = graphql.Config[ResolverRoot, DirectiveRoot, ComplexityRoot]
type DirectiveRoot ¶
type DirectiveRoot struct {
}
type Resolver ¶
type Resolver struct{}
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
func (*Resolver) Subscription ¶
func (r *Resolver) Subscription() SubscriptionResolver
Subscription returns SubscriptionResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
Subscription() SubscriptionResolver
}
type Stub ¶
type Stub struct {
QueryResolver struct {
Noop func(ctx context.Context) (*bool, error)
}
SubscriptionResolver struct {
Marked func(ctx context.Context) (<-chan graphql.Event[string], error)
Unmarked func(ctx context.Context) (<-chan string, error)
}
}
func (*Stub) Query ¶
func (r *Stub) Query() QueryResolver
func (*Stub) Subscription ¶
func (r *Stub) Subscription() SubscriptionResolver
type Subscription ¶
type Subscription struct {
}
Click to show internal directories.
Click to hide internal directories.