Improve 'Add To Query' functionality for nested objects and certain primitives

XMLWordPrintableJSON

    • 3
    • None
    • Developer Tools

      Currently, 'Add to Query' can have unexpected behavior when working with nested objects and arrays.

      1. Doing 'Add to Query' on number primitives does not let one "Remove from query" later.
      2. Doing 'Add to Query' on a nested object does not let one "Remove from query" later.
      3. Doing 'Add to Query' on an element in array of objects overrides the query instead of transforming it into `$in`.

      Investigation may be needed to determine what needs to be updated, it will likely need updates for `add/removeDistinctValue` and `hasDistinctValue` helpers in query utils.

      This is more of a nice to have rather than a critical issue, though maybe some may be confused by the behaviors.

            Assignee:
            Unassigned
            Reporter:
            Gagik Amaryan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: