Consider exposing matching value for operators like $nin in doc validation error details

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Consider the validator expression {"a.b": {"$nin": [1, [2, 3, 4]]}} and the document {"a": [{"b": [1, 2]}, {"b": [3, 4]}]. This document will fail validation because the value '1' is present within {"b": [1, 2]}, but the generated error will report 'consideredValues: [1, 2, [1,2], 3, 4, [3,4]]' without specifying which of the considered values was found to be matching. Consider adding support for exposing matching values in the case of negation expressions like $nin where, because the operator has multiple arguments, it's not immediately obvious which of the values matched.

            Assignee:
            Backlog - Query Team (Inactive)
            Reporter:
            Mihai Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: