Unique index in mongoDB 3.2 ignoring null values

前端 未结 4 1497
余生分开走
余生分开走 2021-02-07 00:24

I want to add the unique index to a field ignoring null values in the unique indexed field and ignoring the documents that are filtered based on partialFilterExpression.

4条回答
提交回复
热议问题