61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
# gqlgen configuration. Regenerate with `make generate` after editing any
|
|
# internal/graph/schema/*.graphql file.
|
|
#
|
|
# GraphQL object types bind straight onto the GORM structs in
|
|
# internal/models, so internal/graph/model only holds generated input types.
|
|
schema:
|
|
- internal/graph/schema/*.graphql
|
|
|
|
exec:
|
|
filename: internal/graph/generated.go
|
|
package: graph
|
|
|
|
model:
|
|
filename: internal/graph/model/models_gen.go
|
|
package: model
|
|
|
|
resolver:
|
|
layout: follow-schema
|
|
dir: internal/graph
|
|
package: graph
|
|
filename_template: "{name}.resolvers.go"
|
|
|
|
models:
|
|
# ID binds to uint as well as int, so a model's `ID uint` needs no resolver.
|
|
ID:
|
|
model:
|
|
- github.com/99designs/gqlgen/graphql.IntID
|
|
- github.com/99designs/gqlgen/graphql.UintID
|
|
JobStatus:
|
|
model:
|
|
- adam-french.co.uk/job-tracker/internal/services.JobStatus
|
|
JobApplication:
|
|
model:
|
|
- adam-french.co.uk/job-tracker/internal/models.JobApplication
|
|
fields:
|
|
deletedAt:
|
|
resolver: false
|
|
events:
|
|
resolver: true
|
|
JobApplicationEvent:
|
|
model:
|
|
- adam-french.co.uk/job-tracker/internal/models.JobApplicationEvent
|
|
JobAppReference:
|
|
model:
|
|
- adam-french.co.uk/job-tracker/internal/models.JobAppReference
|
|
fields:
|
|
deletedAt:
|
|
resolver: false
|
|
JobSource:
|
|
model:
|
|
- adam-french.co.uk/job-tracker/internal/models.JobSource
|
|
fields:
|
|
deletedAt:
|
|
resolver: false
|
|
JobLead:
|
|
model:
|
|
- adam-french.co.uk/job-tracker/internal/models.JobLead
|
|
JobSearchProfile:
|
|
model:
|
|
- adam-french.co.uk/job-tracker/internal/models.JobSearchProfile
|