Skip to content

Commit

Permalink
Some docs for forceGenerate added
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman A. Grigorovich committed Sep 8, 2023
1 parent 9623620 commit c8847f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/content/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ type User @goModel(model: "github.com/my/app/models.User") {
@goTag(key: "xorm", value: "-")
@goTag(key: "yaml")
}

# This make sense when autobind activated.
type Person @goModel(forceGenerate: true) {
id: ID!
name: String!
}
```

The builtin directives `goField`, `goModel` and `goTag` are automatically registered to `skip_runtime`. Any directives registered as `skip_runtime` will not exposed during introspection and are used during code generation only.
Expand Down

0 comments on commit c8847f0

Please sign in to comment.