Let say I have an array with some document _id's:
const ids = ["5ffd5eb822084969b4dc9f74","5ffd5eb822084969b4dc9f74"]
As you can see, there are duplicated, so I want both documents back from Mongo. But with the Document.find({_id: {$in: ids}})
query and the $all
option only one document is returned.
Is there a way to get the transaction twice (in this case) back from Mongo?