mongoose icon indicating copy to clipboard operation
mongoose copied to clipboard

Unique in array without unique index

Open vkarpov15 opened this issue 6 years ago • 1 comments

https://github.com/vkarpov15/mongoose-unique-array/issues/8

vkarpov15 avatar Aug 20 '19 02:08 vkarpov15

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.

bbhopesh avatar Mar 31 '20 17:03 bbhopesh