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

View query not expose the resulting keys and docIds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0.2
    • 3.0.0
    • library
    • 1

    Description

      The is no way to access to the row key and doc id.

      > await bucket.viewQuery(...);
       
      {
        meta: { total_rows: 2, rows: [] },
        rows: [ null, null ]
      }

      the expected maybe it should be

      {
        meta: { total_rows: 2, rows: [] },
        rows: [
          {
            doc: null,
            key: [Array],
            id: 'doc1'
          },
          {
            doc: null,
            key: [Array],
            id: 'doc2'
          }
        ]
      }
      

      Attachments

        Activity

          People

            brett19 Brett Lawson
            jdavidls J.David Luque Sanguino
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty