-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgqlgen.yml
More file actions
31 lines (26 loc) · 887 Bytes
/
Copy pathgqlgen.yml
File metadata and controls
31 lines (26 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Where are all the schema files located? globs are supported eg src/**/*.graphqls
schema:
- graph/*.graphqls
# Where should the generated server code go?
exec:
package: generated
layout: single-file
filename: graph/generated/generated.go
# Where should any generated models go?
model:
filename: domain/model/models_gen.go
package: model
# Where should the resolver implementations go?
resolver:
package: resolver
layout: follow-schema
dir: graph/resolver
filename_template: "{name}.resolvers.go"
# gqlgen will search for any type names in the schema in these go packages
# if they match it will use them, otherwise it will generate them.
autobind:
- "github.com/Rusty-Alucard/sp_api/domain/model"
# This section declares type mapping between the GraphQL and go type systems
models:
DateTime:
model: github.com/Rusty-Alucard/sp_api/domain/model.DateTime