From 37dd3a1779ca80cea32c47e3e139a88ab4b42367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20W=C3=A4rnsberg?= Date: Wed, 15 Sep 2021 09:00:46 +0200 Subject: [PATCH] doc: Document @GQLDefault --- vuepress/docs/docs/schema.md | 1 + 1 file changed, 1 insertion(+) diff --git a/vuepress/docs/docs/schema.md b/vuepress/docs/docs/schema.md index 4447d7050..e3ab61be9 100644 --- a/vuepress/docs/docs/schema.md +++ b/vuepress/docs/docs/schema.md @@ -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