Mongodb: Querying through multiple relatively unknown keys for a value
===

Right now, we are using mongodb 1.2.2 to create a database and store values. Our data types look like this:

"file" : "1" , "tools": { "foo": { "status": "pending"} }

"file" : "2" , "tools": { "bar": { "status": "pending" } }

"file" : "3" , "tools": { "foo": { "status": "running" } }

"file" : "4" , "tools": { "bar": { "status": "done" } }

"file" : "5" , "tools": { "foo": { "status": "done" } } 

We want to query for **every single one** that has `{ "status" : "pending" }.` We do not want to use `{"tools.foo.status" : "pending"}` because we will have many different variations other than foo and bar. To make it more clear we want to do something like this `{"tools.*.status" : "pending"}`