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

UPDATE elements of deeply nested arrays

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Critical
    • 4.5.1, 5.0.0
    • 4.5.0
    • query
    • None

    Description

      N1QL provides the

      UPDATE SET / UNSET ... FOR ...

      syntax for updating nested array elements. However, this only supports one array level. We need to support additional array levels by chaining the FOR clauses. See user request at

      https://forums.couchbase.com/t/how-to-add-new-field-to-each-element-of-array-which-is-inside-another-array/8509/5
      http://stackoverflow.com/questions/37538047/n1ql-how-to-add-new-field-to-each-element-of-array-which-is-inside-another-arr/37546122#37546122

      Attachments

        Issue Links

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

          Activity

            People

              Prerna.Manaktala Prerna Manaktala (Inactive)
              gerald Gerald Sangudi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty