---
schema: "schema/*.graphql"
exec:
  layout: follow-schema
  dir: graph
  package: graph
model:
  filename: models/gen_models.go

autobind:
  - "github.com/git-bug/git-bug/api/graphql/models"
  - "github.com/git-bug/git-bug/repository"
  - "github.com/git-bug/git-bug/entity"
  - "github.com/git-bug/git-bug/entity/dag"
  - "github.com/git-bug/git-bug/entities/common"
  - "github.com/git-bug/git-bug/entities/bug"
  - "github.com/git-bug/git-bug/entities/identity"

omit_getters: true

models:
  ID:
    model: github.com/git-bug/git-bug/entity.Id
  Color:
    model: image/color.RGBA
  Identity:
    model: github.com/git-bug/git-bug/api/graphql/models.IdentityWrapper
  Bug:
    model: github.com/git-bug/git-bug/api/graphql/models.BugWrapper
