Querying distinct values for an array per document

后端 未结 0 500
野趣味
野趣味 2021-01-29 00:48

I have a collection with a bunch of documents, for example

{ items: [ObjectId1, ObjectId2, etc.] }

How do I run a query to identify which documents have duplicates

相关标签:
回答
  • 消灭零回复
提交回复
热议问题