let's assume I have this object in mongo:
{
"_id": "1",
"Test" {
"Array": [ new NumberInt("10") ]
}
}
Now I would like to use this filter to check if last element in an array satisfy my condition:
{ "Test.Array.-1": { "$gte": new NumberInt("10") } }
But it doesn't work as I expected it to. Is it impossible to filter by last element in an array or do I do something wrong here?