Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-24428

Access XAttrs from N1QL

    XMLWordPrintable

Details

    Description

      Customers should be able to use N1QL to introspect Sync Gateway's metadata (e.g. to find docs in a given channel). This kind of functionality can be useful for both developers creating apps and also when trying to debug Sync Gateway issues. There have been cases where the Support team has used N1QL to target the existing _sync property while working customer issues.

      e.g. SELECT xattrs() | xattrs(alias)._mobile.channels FROM …

       

      Could work similar to meta() | meta(alias)

      Attachments

        1. image-2017-08-24-14-28-59-288.png
          169 kB
          Fujio Turner
        2. image-2017-08-24-14-29-39-021.png
          165 kB
          Fujio Turner
        3. isha.output
          20 kB
          Isha Kandaswamy
        4. Screen Shot 2017-08-23 at 10.31.54 PM.png
          165 kB
          Fujio Turner

        Issue Links

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

          Activity

            People

              korrigan.clark Korrigan Clark (Inactive)
              sachin.smotra Sachin Smotra (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty