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

5 comments:

  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
  2. Super site! I am Loving it!! Will return once more, Im taking your food likewise, Thanks. FEATURED

    ReplyDelete
  3. Many vocational schools can help their pharmacy tech students get jobs when their training is completed. hotmail

    ReplyDelete
  4. It didn't take long for the first hostilities to begin only a few years later in 1891 over, of all things, the school colors. UGA's school magazine declared the school colors to be gold, black and crimson. media pitch

    ReplyDelete
  5. Social media is a very new aspect of our businesses that has taken over significant parts of not only our marketing plans but also our personal lives. my response

    ReplyDelete