I have a collection which looks like this:
{
"consultation_type" : "1",
"encounter_id" : "12345"
}
I am applying the following query:
db.encounter.aggregate([{ "$unwind" : "$vitals"},{ "$match" : { "$eq" : [ "$vitals.spirometer.FVC" , "null"]}},{$limit:1}])
but I don't get any result. Is there something wrong in my query?