Skip to content

[FEATURE]: add @default directive to GraphQL schema #8463

@rderbier

Description

@rderbier

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
#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalearea/graphqlIssues related to GraphQL support on Dgraph.dgraphIssue or PR created by an internal Dgraph contributor.kind/featureSomething completely new we should consider.v21.12supposedly corrected in v21.12

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions