Comments carried over from web_server (CVLayout.vue, messageResolver, the Spotify token code) and ones outdated by later changes (the email window now anchors on ReceivedAt, failed emails are retried) are corrected. truncateRunes had a copy in handlers and in services; there is now one, services.TruncateRunes. cleanEmailBody's regexes are compiled once, a status check that could never fire is gone, and api.js loses its unused put/patch helpers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
23 lines
899 B
Go
23 lines
899 B
Go
package graph
|
|
|
|
import "adam-french.co.uk/job-tracker/internal/handlers"
|
|
|
|
// This file will not be regenerated automatically.
|
|
//
|
|
// It serves as dependency injection for your app, add any dependencies you require
|
|
// here.
|
|
|
|
// Resolver is the root of the GraphQL schema and the only dependency every
|
|
// resolver has. Rather than listing dependencies individually it holds the
|
|
// same handlers.Store the REST handlers use, so GraphQL and REST share one
|
|
// database handle and the same services.
|
|
//
|
|
// The generated code embeds *Resolver in per-type resolver structs, which is
|
|
// why one-line `struct{ *Resolver }` declarations appear at the bottom of some
|
|
// resolvers files. A type only gets one when a field of it needs a resolver:
|
|
// queryResolver and mutationResolver always. Every object type binds its
|
|
// fields straight to the model and has none.
|
|
type Resolver struct {
|
|
Store *handlers.Store
|
|
}
|