-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathgqlgen.yml
More file actions
39 lines (33 loc) · 908 Bytes
/
gqlgen.yml
File metadata and controls
39 lines (33 loc) · 908 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
32
33
34
35
36
37
38
39
# gqlgen configuration
# See https://gqlgen.com/config/ for details
schema:
- internal/graph/*.graphqls
exec:
filename: internal/graph/generated.go
package: graph
model:
filename: pkg/beangraph/model/models_gen.go
package: model
resolver:
layout: follow-schema
dir: internal/graph
package: graph
# Autobind to existing types
autobind:
- github.com/hmans/beans/pkg/bean
models:
# Use existing Bean type from bean package
Bean:
model: github.com/hmans/beans/pkg/bean.Bean
# Map ID scalar to string
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