Documentation ¶
Overview ¶
Package resolver provide the resolver struct for resolving graphql queries and mutations
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct { DB *gorm.DB RDB *redis.Client Writer http.ResponseWriter Request *http.Request SessionManager session.SessionManager }
Resolver is the struct on which all the different resolvers are created This is where dependency injection is also done for the resolvers
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.
func (*Resolver) User ¶
func (r *Resolver) User() generated.UserResolver
User returns generated.UserResolver implementation.
Click to show internal directories.
Click to hide internal directories.