I am starting to play with MongoDB, and I am wondering if it is possible to query the data store for any property with a specific value.
So, instead of:
db.foo.find({'color':'red'})
I am looking to do something like:
db.foo.find({'%':'red'})
Is it possible? Is there any syntax for substituting a property slot? I tried using regex, but that gave me an error.
source
share