I have a document -
{"_id" : ObjectId("51385d2308d427ce306f0100"), "aid" : "1", "studyId" : "study-1", "mediaType" : "microBlog", "text" : "bla bla", "sentences" : "bla bla", "status" : { "algo1" : "required", "algo2" : "required", "algo3" : "completed", "algo4" : "completed" }, "priority" : "u"}
The status field has multiple sub-fields with different status values. Is it possible to create a query such that it returns all documents for which any of the status sub-field's value is "required"?
Something like db.foo.find({status : "required"}) which would give me all documents for which any of the sub-field has value "required"