Pages

Wednesday, 2 November 2011

Challenges using PHP drivers for Mongo

Say inside dataCollection, we have a nested array attribs containing value => 1200* To find, we need to query using a '.' in between, attribs.value =>1200. This is not the same behavior as in Mongo shell* Results returned will be in nested array, no dots in between, this is how results will show up in Mongo shell.* To update, first argument needs to be specified in a nested array, this is how its done in Mongo shell