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

[ENHANCEMENT]: Add @unique constraints to predicates in DQL schema #8865

Closed
rderbier opened this issue Jun 9, 2023 · 1 comment
Closed
Labels
area/querylang Issues related to the query language specification and implementation. dgraph Issue or PR created by an internal Dgraph contributor. kind/enhancement Something could be better.

Comments

@rderbier
Copy link
Member

rderbier commented Jun 9, 2023

Use case and current behavior

Dgraph does not enforce uniqueness in the DQL schema.
It is a first step to address other feature requests from #8179

Enhancement

The users can specify uniqueness constraint using @unique directive in the schema for a given predicate.

Links to Discuss, RFC or previous Issues and PRs

jdgamble555 requests]#8179

@rderbier rderbier added the kind/enhancement Something could be better. label Jun 9, 2023
@rderbier rderbier added the area/querylang Issues related to the query language specification and implementation. label Jun 9, 2023
@MichelDiz MichelDiz added the dgraph Issue or PR created by an internal Dgraph contributor. label Jun 26, 2023
@mangalaman93
Copy link
Member

Partially fixed in #8827

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/querylang Issues related to the query language specification and implementation. dgraph Issue or PR created by an internal Dgraph contributor. kind/enhancement Something could be better.
Development

No branches or pull requests

3 participants