{
“active”: true,
“amount”:50
“markup”:“Hotel”,
“agent”: [
“dfac805f-ba2e-4672-9b88-8bd7cc11d3d6”,
“65f1c0fb-09fa-4dfa-bf32-f1a1379bd5c3”
]
}
here I want to find my agent using $in, contains, and $all but not get any record.
Is there any other way to find records?
var result = await Markup.find({ agent: { ‘$in’: [agents.id.toString()] } });
got result QueryOperatorNotFoundException [Error]: Operator not found: $in
OR
Need Result : using agent key
dfac805f-ba2e-4672-9b88-8bd7cc11d3d6
{
“active”: true,
“amount”:50
“markup”:“Hotel”
}