dgraph icon indicating copy to clipboard operation
dgraph copied to clipboard

[FEATURE]: add @default directive to GraphQL schema

Open rderbier opened this issue 2 years ago • 2 comments

Allow user to set a default value on fields for add and update operation. Allow use of $now to set current date time as default.

Was covered in v21.12 https://github.com/dgraph-io/dgraph/pull/8017

default value provided as string. $now replaced by current DateTime on the server. See PR, investigate if we can add default value for enums.

rderbier avatar Nov 28 '22 22:11 rderbier