[FEATURE]: DQL Check Constraint #8410
Labels
community
Issue or PR created by the community.
kind/feature
Something completely new we should consider.
Stale
Have you tried Dgraph before this proposal? and did not find anything similar?
No response
What you wanted to do.
It would be nice to have basic check constraints in DQL.
SQL has a simple money example.
You could also add it as a top-level directive.
regex
This would require some basic string functions for matching, and would allow
AND
,OR
etc...What you actually did.
I would say regex and string functions would come later, but basic checks for greater than, equal to, etc should work initially. This would also have to translate a level up to GraphQL.
Why wasn't it great, with examples.
We can put anything anywhere. This is great sometimes, but other times we want constraints.
Additional information.
This could open up the door for type constraints as well. This would be optional of course. Could come down the line.
The text was updated successfully, but these errors were encountered: