Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-94

http://www.couchbase.com/communities/nodejs/getting-started page still refers to delete when method is remove!

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • None
    • 1.2.0
    • docs
    • Security Level: Public
    • MacOS

    Description

      I'm using the Get Started instructions for node.js and the page (http://www.couchbase.com/communities/nodejs/getting-started) is referring to the method delete() in the text when this gives an error message:

      db.delete(beer_id, function(err, result) { });
      ^
      TypeError: Object #<Connection> has no method 'delete'

      Upon checking the source I found that it needs to be renamed into remove() to delete a dataset.

      I'm just a newbie but please either correct the documentation on Getting Started (which is frustrating if you take every step and get an error message that isn't your error) or change the source code back method delete ()

      Either way, it's a minor for you guys but a bigger annoyance for newbies to node.js and CouchBase like me.

      Hope I did all right to report and BTW, when I want to ask a question via the node.js community I can enter everything and press submit, only to be presented with an error that my question wasn't posted (see attached error message). Sorry to post it here but I can't post it there obviously!

      Andreas

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            brett19 Brett Lawson
            a4xrbj1 a4xrbj1 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty