forked from stashapp/stash-box
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gqlgen.yml
41 lines (37 loc) · 1010 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
41
# Refer to https://gqlgen.com/config/ for detailed .gqlgen.yml documentation.
schema:
- "graphql/schema/types/*.graphql"
- "graphql/schema/*.graphql"
exec:
filename: pkg/models/generated_exec.go
model:
filename: pkg/models/generated_models.go
resolver:
filename: pkg/api/resolver.go
type: Resolver
struct_tag: gqlgen
autobind:
- "github.com/stashapp/stash-box/pkg/models"
models:
ID:
model: github.com/stashapp/stash-box/pkg/models.ID
#model: github.com/gofrs/uuid.UUID
Image:
model: github.com/stashapp/stash-box/pkg/models.Image
fields:
url:
resolver: true
PerformerEdit:
fields:
birthdate:
resolver: true
SceneEdit:
fields:
date:
resolver: true
QueryPerformersResultType:
model: github.com/stashapp/stash-box/pkg/models.PerformerQuery
QueryEditsResultType:
model: github.com/stashapp/stash-box/pkg/models.EditQuery
QueryScenesResultType:
model: github.com/stashapp/stash-box/pkg/models.SceneQuery