Missing } in examples

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In http://mongodb.github.com/node-mongodb-native/api-articles/nodekoarticle1.html there're few examples indicating the following piece of code:

      collection.update(

      {mykey:2}

      , {$push:{docs:{doc2:1}},

      {safe:true}

      , function(err, result) {});

      It should be:

      collection.update(

      {mykey:2}

      , {$push:{docs:

      {doc2:1}

      }},

      {safe:true}

      , function(err, result) {});

            Assignee:
            Sam Kleinman (Inactive)
            Reporter:
            Nicolás Bottini
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: