resolver

package
v0.0.0-...-f46f3e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL