Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-24

Missing } in examples

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None

    Description

      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) {});

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            nicolasb Nicolás Bottini
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: