Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct { // Interface between the server and the cache service it uses for hot/live // data storage. Cache *cache.Cache // Settings and other values that affect how the server should function. Config *config.Config // Interface between the server and its primary data store. DB *db.DB // Interface between the server and the service it uses to send emails. Mailer *mailer.Mailer }
Core type available to every GraphQL resolver.
This struct is how we facilitate "dependency injection" in our GraphQL resolvers.
For information about this, and other parts of server/graph, check out https://gqlgen.com
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() server.MutationResolver
Mutation returns server.MutationResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() server.QueryResolver
Query returns server.QueryResolver implementation.
Click to show internal directories.
Click to hide internal directories.