mongoose
mongoose copied to clipboard
Unique in array without unique index
https://github.com/vkarpov15/mongoose-unique-array/issues/8
There is a MongoDB blog on the same issue. MongoDB's json schema validation seems to support an option called uniqueItems to enforce uniqueness on an array field within a single document.