package generated
import "github.com/99designs/gqlgen/codegen/testserver/compliant-int/generated-default"
Index ¶
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type ComplexityRoot
- type Config
- type DirectiveRoot
- type Input
- type Input64
- type Query
- type QueryResolver
- type Resolver
- type ResolverRoot
- type Result
- type Result64
- type Stub
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 *int) 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 Input ¶
type Input struct { N *int `json:"n,omitempty"` }
type Input64 ¶
type Input64 struct { N *int `json:"n,omitempty"` }
type Query ¶
type Query struct { }
type QueryResolver ¶
type QueryResolver interface { EchoIntToInt(ctx context.Context, n *int) (int, 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 Result ¶
type Result struct { N int `json:"n"` }
type Result64 ¶
type Result64 struct { N int `json:"n"` }
type Stub ¶
type Stub struct { QueryResolver struct { EchoIntToInt func(ctx context.Context, n *int) (int, 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
Source Files ¶
models.go resolver.go schema.go stub.go
- Version
- v0.17.73 (latest)
- Published
- May 2, 2025
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 4 days ago –
Tools for package owners.