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 { Concentrate struct { Gravity func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Urls func(childComplexity int) int Vendor func(childComplexity int) int } Mutation struct { AddConcentrateURL func(childComplexity int, input model.NewConcentrateURL) int AddVendorURL func(childComplexity int, input model.NewVendorURL) int CreateConcentrate func(childComplexity int, input model.NewConcentrate) int CreateVendor func(childComplexity int, input model.NewVendor) int } Query struct { Concentrates func(childComplexity int) int Vendors func(childComplexity int) int } URL struct { Description func(childComplexity int) int ID func(childComplexity int) int URL func(childComplexity int) int } Vendor struct { Code func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Urls func(childComplexity int) int } }
type ConcentrateResolver ¶
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { CreateVendor(ctx context.Context, input model.NewVendor) (*model.Vendor, error) AddVendorURL(ctx context.Context, input model.NewVendorURL) (*model.URL, error) CreateConcentrate(ctx context.Context, input model.NewConcentrate) (*model.Concentrate, error) AddConcentrateURL(ctx context.Context, input model.NewConcentrateURL) (*model.URL, error) }
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Concentrate() ConcentrateResolver Mutation() MutationResolver Query() QueryResolver Vendor() VendorResolver }
Click to show internal directories.
Click to hide internal directories.