Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct{}
Module struct for the todo module
type MutationResolver ¶
type MutationResolver struct {
// contains filtered or unexported fields
}
MutationResolver maps mutations
func (*MutationResolver) Inject ¶
func (r *MutationResolver) Inject(resolver *UserResolver) *MutationResolver
Inject dependencies
type UserResolver ¶
type UserResolver struct {
// contains filtered or unexported fields
}
UserResolver mapper between graphql and the todos backend
func (*UserResolver) Inject ¶
func (r *UserResolver) Inject(todosBackend *infrastructure.TodoService) *UserResolver
Inject dependencies
func (*UserResolver) Todos ¶
func (r *UserResolver) Todos(ctx context.Context, obj *userDomain.User) ([]*domain.Todo, error)
Todos getter
Click to show internal directories.
Click to hide internal directories.