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 { Mutation struct { CreateOrder func(childComplexity int, input model.NewOrder) int CreateTechnician func(childComplexity int, input model.NewTechnician) int CreateUser func(childComplexity int, input model.NewUser) int Login func(childComplexity int, input model.Login) int RefreshToken func(childComplexity int, input model.RefreshTokenInput) int UpdateOrder func(childComplexity int, token string, input model.NewOrder) int } Order struct { Calification func(childComplexity int) int Description func(childComplexity int) int Feedback func(childComplexity int) int ID func(childComplexity int) int Status func(childComplexity int) int Technician func(childComplexity int) int Tv func(childComplexity int) int URL func(childComplexity int) int User func(childComplexity int) int } OrderCreated struct { Token func(childComplexity int) int URL func(childComplexity int) int } Query struct { Order func(childComplexity int, input string) int Orders func(childComplexity int) int } Technician struct { Email func(childComplexity int) int FirstName func(childComplexity int) int LastName func(childComplexity int) int Password func(childComplexity int) int } Television struct { Brand func(childComplexity int) int ID func(childComplexity int) int Model func(childComplexity int) int } User struct { Email func(childComplexity int) int FirstName func(childComplexity int) int LastName func(childComplexity int) int Password func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { CreateUser(ctx context.Context, input model.NewUser) (string, error) CreateTechnician(ctx context.Context, input model.NewTechnician) (string, error) CreateOrder(ctx context.Context, input model.NewOrder) (*model.OrderCreated, error) UpdateOrder(ctx context.Context, token string, input model.NewOrder) (string, error) Login(ctx context.Context, input model.Login) (string, error) RefreshToken(ctx context.Context, input model.RefreshTokenInput) (string, error) }
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.