Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DBC *db.DBSyncClient
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type Config ¶
type Config struct {
Schema *ast.Schema
Resolvers ResolverRoot
Directives DirectiveRoot
Complexity ComplexityRoot
}
type DirectiveRoot ¶
type DirectiveRoot struct {
}
type JSON ¶
type JSON map[string]interface{}
func (JSON) MarshalGQL ¶
MarshalGQL serializes JSON into format used by GraphQL
func (*JSON) UnmarshalGQL ¶
UnmarshalGQL deserializes from GraphQL format into JSON
type QueryResolver ¶
type Resolver ¶
type Resolver struct{}
This file will not be regenerated automatically.
It serves as dependency injection for your app, add any dependencies you require here.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}
Click to show internal directories.
Click to hide internal directories.