Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver sets up a GraphQL resolver with all necessary dependencies
func NewResolver ¶
func NewResolver( ctx context.Context, usecases usecases.Interactor, infra infrastructure.Interactor, ) (*Resolver, error)
NewResolver sets up the dependencies needed for query and mutation resolvers to work
func (*Resolver) CheckUserTokenInContext ¶
CheckUserTokenInContext ensures that the context has a valid Firebase auth token
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() generated.MutationResolver
Mutation returns generated.MutationResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() generated.QueryResolver
Query returns generated.QueryResolver implementation.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.