-
Notifications
You must be signed in to change notification settings - Fork 0
/
gqlgen.yml
40 lines (32 loc) · 1023 Bytes
/
gqlgen.yml
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
32
33
34
35
36
37
38
39
40
# Where are all the schema files located? globs are supported eg src/**/*.graphqls
schema:
- "api/schema/**/*.gql"
exec:
filename: api/graph/generated/generated.go
package: generated
model:
filename: api/graph/model/models_gen.go
package: model
resolver:
layout: follow-schema
dir: api/graph/resolvers
package: resolvers
filename_template: "{name}.go"
omit_slice_element_pointers: true
# skip_validation: true
# 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/bcmmbaga/scale/api/graph/model"
models:
ID:
model:
- github.com/99designs/gqlgen/graphql.ID
- github.com/99designs/gqlgen/graphql.Int
- github.com/99designs/gqlgen/graphql.Int64
- github.com/99designs/gqlgen/graphql.Int32
Int:
model:
- github.com/99designs/gqlgen/graphql.Int
- github.com/99designs/gqlgen/graphql.Int64
- github.com/99designs/gqlgen/graphql.Int32