Can we specify the unique together constraint in models? #36
-
Hello, |
Beta Was this translation helpful? Give feedback.
Answered by
harshalizode
May 20, 2024
Replies: 1 comment 3 replies
-
We can set the unique-together constraint in meta by creating the index as:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, Mongoz has the feature to set the unique-together constraint in the Class Meta, but not have the documentation of it :)