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 { StationByCd func(childComplexity int, stationCd *int) int StationByName func(childComplexity int, stationName *string) int } Station struct { Address func(childComplexity int) int AfterStation func(childComplexity int) int BeforeStation func(childComplexity int) int LineName func(childComplexity int) int StationCd func(childComplexity int) int StationName func(childComplexity int) int TransferStation 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 Station() StationResolver }
Click to show internal directories.
Click to hide internal directories.