-
Type: Bug
-
Resolution: Cannot Reproduce
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.0.4
-
Component/s: Querying
-
Labels:None
-
ALL
-
Problem
The $exists operator is not working correctly for matching nested documents, using the syntax {field: {$exists: false}}.
Further details
This is a simplified version of production_units):
[
{{{}}
"_id": ObjectId("5aca27b926974863ed9f01ab"),
"name": "Z",
"workers": [
{
"name": "X Y",
"worker_number": 655,
"employed": false,
"_id": ObjectId("5aca27bd26974863ed9f0425")
{{ }}}
]
}
]