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

Implement validation error generation for comparison query operators

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Query 2020-07-13, Query 2020-07-27

      Implement validation error generation for $eq, $lt, $lte, $gt, $gte, $ne, $in, and $nin along with unit tests verifying that generated errors conform to the expected format. Since this is the first ticket which tracks work for generating errors, the following will also be implemented under this ticket:

      • Introduce an 'ErrorAnnotation' type for MatchExpressions
      • General support for generating errors for path accepting expressions. This includes:
        • Generating errors for operators which expect a path but the path doesn't exist.
        • Appending 'consideredValues' when the operator makes use of implicit array traversal and appending 'consideredValue' when dealing with a single value.

            Assignee:
            mihai.andrei@mongodb.com Mihai Andrei
            Reporter:
            mihai.andrei@mongodb.com Mihai Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: