forked from project-zot/zot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgqlgen.yml
30 lines (26 loc) · 894 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
# schema tells gqlgen where the GraphQL schema is located.
schema:
- ent.graphql
- entz.graphql
# resolver reports where the resolver implementations go.
resolver:
layout: follow-schema
dir: .
# 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 tells gqngen to search for any type names in the GraphQL schema in the
# provided package. If they match it will use them, otherwise it will generate new.
autobind:
- zotregistry.io/zot/ent
- zotregistry.io/zot/pkg/search/schema
- zotregistry.io/zot/ent/schema
- zotregistry.io/zot
# This section declares type mapping between the GraphQL and Go type systems.
models:
# Defines the ID field as Go 'int'.
ID:
model:
- github.com/99designs/gqlgen/graphql.IntID
Node:
model:
- zotregistry.io/zot/ent.Noder