Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rderbier opened this issue Nov 28, 2022 · 3 comments
Closed

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

rderbier opened this issue Nov 28, 2022 · 3 comments
Labels
area/graphql Issues related to GraphQL support on Dgraph. dgraph Issue or PR created by an internal Dgraph contributor. kind/feature Something completely new we should consider. Stale v21.12 supposedly corrected in v21.12

Comments

@rderbier
Copy link
Contributor

rderbier commented Nov 28, 2022

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.

@rderbier rderbier added kind/feature Something completely new we should consider. area/graphql Issues related to GraphQL support on Dgraph. v21.12 supposedly corrected in v21.12 labels Nov 28, 2022
@MichelDiz MichelDiz added the dgraph Issue or PR created by an internal Dgraph contributor. label Dec 15, 2022
adiffpirate added a commit to adiffpirate/adiffhunting that referenced this issue Oct 5, 2023
@gregpavl
Copy link

gregpavl commented Jul 1, 2024

is there any update on this feature?

@jimrazmus
Copy link

I am also interested in seeing the @default option added.

Copy link

github-actions bot commented Sep 9, 2024

This issue has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open.

@github-actions github-actions bot added the Stale label Sep 9, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/graphql Issues related to GraphQL support on Dgraph. dgraph Issue or PR created by an internal Dgraph contributor. kind/feature Something completely new we should consider. Stale v21.12 supposedly corrected in v21.12
Development

No branches or pull requests

4 participants