Skip to content

Commit

Permalink
doc: Document @GQLDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
frekw committed Sep 15, 2021
1 parent 945e1e4 commit 37dd3a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vuepress/docs/docs/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ Caliban supports a few annotations to enrich data types:
- `@GQLInterface` to force a sealed trait generating an interface instead of a union.
- `@GQLDirective(directive: Directive)` to add a directive to a field or type.
- `@GQLValueType` forces a type to behave as a value type for derivation. Meaning that caliban will ignore the outer type and take the first case class parameter as the real type.
- `@GQLDefault("defaultValue")` allows you to specify a default value for an input field using GraphQL syntax. The default value will be visible in your schema's SDL and during introspection.

## Java 8 Time types

Expand Down

0 comments on commit 37dd3a1

Please sign in to comment.