Wednesday, 2 November 2011

Challenges using PHP drivers for Mongo

Php driver inconsistency handling data stored in Nested documents inside Mongo db.

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

1 comment:

  1. Great Article
    Cloud Computing Projects


    Networking Projects

    Final Year Projects for CSE


    JavaScript Training in Chennai

    JavaScript Training in Chennai

    The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

    ReplyDelete