I have a db object like this:
{
   "_id": ObjectID("55c247f94b0c25e5d90d0f39"),
   "districts": [
    {
        "district": "Bangalore Urban",
        "stateID": 2,
        "districtID": 1
    },
    {
        "district": "Tumkur",
        "stateID": 2,
        "districtID": 2
    }
]
}
and i have stateID with me, what mongoose query should i write to get all objects from the array districts having the stateID 2
Please help!
 
    