Skip to content
Discussion options

You must be logged in to vote

The approach you specified will make sure there aren't multiple Category documents that have the same locale, name, but one Category document can still have duplicate locale, name. Try mongoose-unique-array, and open an issue on that repo with a repro script if that doesn't work 👍

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Uzlopak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants