Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-4699

Add section explaining how to use META().xattrs.`$document` in N1QL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Test Blocker
    • None
    • None
    • query

    Description

      It appears that the use of META().xattrs.`$document` in N1QL queries has been a tribal knowledge for some time. E.g.,

      SELECT META().xattrs.`$document`.exptime FROM testBucket

      gets TTL value without having to index it first. We should add a documentation section on this.

      Attachments

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

        Activity

          People

            simon.dew Simon Dew
            oleg.kuzmin Oleg Kuzmin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty