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 { Query struct { EchoInt64InputToInt64Object func(childComplexity int, input Input64) int EchoInt64ToInt64 func(childComplexity int, n *int) int EchoIntInputToIntObject func(childComplexity int, input Input) int EchoIntToInt func(childComplexity int, n *int32) int } Result struct { N func(childComplexity int) int } Result64 struct { N func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type QueryResolver ¶
type QueryResolver interface { EchoIntToInt(ctx context.Context, n *int32) (int32, error) EchoInt64ToInt64(ctx context.Context, n *int) (int, error) EchoIntInputToIntObject(ctx context.Context, input Input) (*Result, error) EchoInt64InputToInt64Object(ctx context.Context, input Input64) (*Result64, error) }
type Resolver ¶
type Resolver struct{}
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}
type Stub ¶
type Stub struct { QueryResolver struct { EchoIntToInt func(ctx context.Context, n *int32) (int32, error) EchoInt64ToInt64 func(ctx context.Context, n *int) (int, error) EchoIntInputToIntObject func(ctx context.Context, input Input) (*Result, error) EchoInt64InputToInt64Object func(ctx context.Context, input Input64) (*Result64, error) } }
func (*Stub) Query ¶
func (r *Stub) Query() QueryResolver
Click to show internal directories.
Click to hide internal directories.