say my database collection has
* user collection*
[
{id:'1'}
{id:'2'}
]
I have an array of object
[
{id:'1'}
{id:'2'}
{id:'3'}
]
I want the object that was not found in the collection.
I want
[
{id:'3'}
]
I’m currently have this
const records = await dbo
.collection('some_collection')
.find({
'id': { $in: newArr },
})
.toArray();
I’m a bit stumped on what to do! … hope someone can help Thanks!