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

Document Validation should allow comparisson between attributes within a document

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: 3.2.0-rc0
    • Fix Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible

      Description

      The validation checks cannot compare one key's value against another (whether in the same or different documents). For example `{salary: {$gte: startingSalary}}` is not possible.

      Checks within the same document would be the priority. Checks against other documents (in the same or other collections) would also be useful.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-query Backlog - Query Team (Inactive)
              Reporter:
              andrew.morgan Andrew Morgan
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: