Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-51399

Validation errors for $expr should report result of evaluation, not result after coercion to a boolean

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • None
    • None
    • Fully Compatible
    • Query 2020-10-19, Query 2020-11-02

    Description

      Currently, document validation errors for $expr will report the 'expressionResult' as the result of the expression after being coerced to bool, when it should report the value returned from expression evaluation.

      Attachments

        Activity

          People

            mindaugas.malinauskas@mongodb.com Mindaugas Malinauskas
            mihai.andrei@mongodb.com Mihai Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: