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

Update documentation on durability settings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0.0-beta.1
    • None
    • None
    • None
    • 1

    Description

      I can see the durability options in enum.js and in collection.js but setting them as suggested hereĀ https://docs.couchbase.com/nodejs-sdk/3.0/howtos/kv-operations.html :

      var response=await coll.upsert('fred',{'harry':'paul','little':'large'},{durabilityLevel:couchbase.DurabilityLevel.Majority});

      Returns

      TypeError: Cannot read property 'Majority' of undefined

      What am I missing? I tried prefixing DurabilityLevel with couchbase.enums as well, but to the same effect.

      Attachments

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

        Activity

          People

            brett19 Brett Lawson
            Ellis.Breen Ellis Breen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty