I wrote this code but it doesn't work
{
"name": "ehsan",
"test": [
{
"$oid": "6320ea167283ccc7c86cd8e6"
},
{
"$oid": "6320ea1f7283ccc7c86cd8eb"
},
],
}
{
"item": "dsfd",
"item2": "dsdsdsds",
}
I want to extract the cases of my evolution from the test object
let tests = await this.Tests.find({
_id: { $in: result["test"].find().select("item") },
});