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

Would be very helpful to provide some more examples of how backticks are needed, especially with nested fields

    XMLWordPrintable

Details

    Description

      If the alias or identifier or filename has especial character or reserved words you need to use backticks.
      With in the whole back-tic is considered as identifier.

      Case 1:

      { "contact": { "work": "Programing"}}

      can be referenced as

      contact.`work` OR
      `contact`.`work`

      If referenced as `contact.work` There is no such field and returns MISSING

      Case 2:

      { "contact.work": "Programing"}

      can be referenced as due to special character in filed name dot.

      `contact.work`

      If referenced as contact.`work` OR `contact`.`work` returns as MISSING because there is contact field is MISSING in object.

      Attachments

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

        Activity

          People

            simon.dew Simon Dew
            perry Perry Krug
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty