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 { Ingredient struct { From func(childComplexity int) int PharmaceuticalForm func(childComplexity int) int Strength func(childComplexity int) int Substance func(childComplexity int) int } Medicine struct { Code func(childComplexity int) int Ingredient func(childComplexity int) int Name func(childComplexity int) int PosologyNotes func(childComplexity int) int } PharmaceuticalForm struct { Code func(childComplexity int) int Name func(childComplexity int) int } Query struct { Medicines func(childComplexity int) int Search func(childComplexity int, filter *model.Filter) int Substances func(childComplexity int) int } Strength struct { Unit func(childComplexity int) int Value func(childComplexity int) int } Substance struct { Code func(childComplexity int) int Name func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}
Click to show internal directories.
Click to hide internal directories.