[FEATURE]: DQL Not Null Constraint (Existential)
Open
@shiva-istari is already working on this.
Since Jun 9, 2026.
area/dql-graphql-interop
community
kind/feature
Stale
- Dominant language
- Go
- Stars
- 21.8k
- Forks
- 1.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 9
Description
Have you tried Dgraph before this proposal? and did not find anything similar?
No response
What you wanted to do.
Enforce that a value exists in a node in DQL.
Perhaps on the DQL schema:
type Person {
friend @notnull
...
}
I should not be able to alter the schema where non null values exist.
What you actually did.
You can do this now in GraphQL with the ! in front of the type. See here.
We need to be able to do this in DQL.
Why wasn't it great, with examples.
You can add data in DQL, ignoring the GraphQL constraint, causing data integrity issues. It should be IMPOSSIBLE to have null data if this constraint is actie.
Additional information.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.