-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgqlgen.yml
37 lines (33 loc) · 1.03 KB
/
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
schema:
- graph/ent.graphql
- graph/gorb.graphql
exec:
filename: graph/generated/generated.go
package: generated
resolver:
# Tell gqlgen to generate resolvers next to the schema file.
layout: follow-schema
dir: graph
package: graph
# gqlgen will search for any type names in the schema in the generated
# ent package. If they match it will use them, otherwise it will new ones.
autobind:
- github.com/nibbleshift/gorb/ent
- github.com/nibbleshift/gorb/ent/bench
- github.com/nibbleshift/gorb/ent/benchresult
models:
ID:
model:
- github.com/99designs/gqlgen/graphql.IntID
- 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
Node:
model:
# ent.Noder is the new interface generated by the Node template.
- github.com/nibbleshift/gorb/ent.Noder