Documentation
¶
Index ¶
- Variables
- func EnumLogging(ctx context.Context, obj any, next graphql.Resolver) (res any, err error)
- func FieldLogging(ctx context.Context, obj any, next graphql.Resolver) (res any, err error)
- func InputLogging(ctx context.Context, obj any, next graphql.Resolver) (res any, err error)
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- func ObjectLogging(ctx context.Context, obj any, next graphql.Resolver) (res any, err error)
- func ScalarLogging(ctx context.Context, obj any, next graphql.Resolver) (res any, err error)
- func UnionLogging(ctx context.Context, obj any, next graphql.Resolver) (res any, err error)
- type ComplexityRoot
- type Config
- type Data
- type DirectiveRoot
- type MyMutation
- type MyMutationResolver
- type MyQuery
- type MyQueryResolver
- type Node
- type ResolverRoot
- type State
- type Todo
- type TodoInput
Constants ¶
This section is empty.
Variables ¶
View Source
var AllState = []State{ StateNotYet, StateDone, }
Functions ¶
func EnumLogging ¶
func FieldLogging ¶
func InputLogging ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
func ObjectLogging ¶
func ScalarLogging ¶
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct {
MyMutation struct {
CreateTodo func(childComplexity int, todo TodoInput) int
}
MyQuery struct {
Todo func(childComplexity int, id string) int
Todos func(childComplexity int) int
}
Todo struct {
ID func(childComplexity int) int
State func(childComplexity int) int
Text func(childComplexity int) int
Verified func(childComplexity int) int
}
}
type Config ¶
type Config struct {
Schema *ast.Schema
Resolvers ResolverRoot
Directives DirectiveRoot
Complexity ComplexityRoot
}
type DirectiveRoot ¶
type DirectiveRoot struct {
EnumLogging func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error)
FieldLogging func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error)
InputLogging func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error)
InterfaceLogging func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error)
ObjectLogging func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error)
ScalarLogging func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error)
UnionLogging func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error)
}
type MyMutation ¶
type MyMutation struct {
}
type MyMutationResolver ¶
type MyQueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface {
MyMutation() MyMutationResolver
MyQuery() MyQueryResolver
}
func NewRootResolver ¶
func NewRootResolver() ResolverRoot
type State ¶
type State string
func (State) MarshalGQL ¶
func (State) MarshalJSON ¶
func (*State) UnmarshalGQL ¶
func (*State) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.