aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/gqlgen.yml
blob: d0e579a26a985490d5f529ab730a813ecb417fd8 (plain) (blame)
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
schema: schema.graphql
exec:
  filename: resolvers/gen_graph.go
model:
  filename: models/gen_models.go

models:
  # Hack: here, we define the Repository model as a struct we control to trick gqlgen into
  # generating an empty resolver instead of a struct with data
  # Hopefully in the future, gqlgen support this case and we can clean that, as well as
  # moving gen_graph.go into it's own package
  Repository:
    model: github.com/MichaelMure/git-bug/graphql/resolvers.repoResolver
  Bug:
    model: github.com/MichaelMure/git-bug/bug.Snapshot
  Comment:
    model: github.com/MichaelMure/git-bug/bug.Comment
  Person:
    model: github.com/MichaelMure/git-bug/bug.Person
  Label:
    model: github.com/MichaelMure/git-bug/bug.Label
  CreateOperation:
    model: github.com/MichaelMure/git-bug/bug/operations.CreateOperation
  SetTitleOperation:
    model: github.com/MichaelMure/git-bug/bug/operations.SetTitleOperation
  AddCommentOperation:
    model: github.com/MichaelMure/git-bug/bug/operations.AddCommentOperation
  SetStatusOperation:
    model: github.com/MichaelMure/git-bug/bug/operations.SetStatusOperation
  LabelChangeOperation:
    model: github.com/MichaelMure/git-bug/bug/operations.LabelChangeOperation