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 {
Profile struct {
ID func(childComplexity int) int
}
Query struct {
Users func(childComplexity int) int
}
User struct {
NonNullableBatch func(childComplexity int) int
NonNullableNonBatch func(childComplexity int) int
NullableBatch func(childComplexity int) int
NullableBatchWithArg func(childComplexity int, offset int) int
NullableNonBatch func(childComplexity int) int
NullableNonBatchWithArg func(childComplexity int, offset int) int
}
}
type Config ¶
type Config = graphql.Config[ResolverRoot, DirectiveRoot, ComplexityRoot]
type DirectiveRoot ¶
type DirectiveRoot struct {
}
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
func (*Resolver) User ¶
func (r *Resolver) User() UserResolver
User returns UserResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
User() UserResolver
}
type User ¶
type User struct {
NullableBatch *Profile `json:"nullableBatch,omitempty"`
NullableNonBatch *Profile `json:"nullableNonBatch,omitempty"`
NullableBatchWithArg *Profile `json:"nullableBatchWithArg,omitempty"`
NullableNonBatchWithArg *Profile `json:"nullableNonBatchWithArg,omitempty"`
NonNullableBatch *Profile `json:"nonNullableBatch"`
NonNullableNonBatch *Profile `json:"nonNullableNonBatch"`
}
type UserResolver ¶
type UserResolver interface {
NullableBatch(ctx context.Context, objs []*User) ([]*Profile, error)
NullableNonBatch(ctx context.Context, obj *User) (*Profile, error)
NullableBatchWithArg(ctx context.Context, objs []*User, offset int) ([]*Profile, error)
NullableNonBatchWithArg(ctx context.Context, obj *User, offset int) (*Profile, error)
NonNullableBatch(ctx context.Context, objs []*User) ([]*Profile, error)
NonNullableNonBatch(ctx context.Context, obj *User) (*Profile, error)
}
Click to show internal directories.
Click to hide internal directories.