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

Create $_internalSchemaMinLength and $_internalSchemaMaxLength MatchExpressions

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.5.11
    • None
    • Querying
    • None
    • Fully Compatible
    • Query 2017-07-10, Query 2017-07-31

    Description

      Create a $_internalSchemaMinLength MatchExpression, which takes a positive integer. It matches string fields whose length are at least the specified value:

      {"path.to.match": {$_internalSchemaMinLength: <integer>}}
      

      $_internalSchemaMaxLength works similarly for maximum length.

      {"path.to.match": {$_internalSchemaMaxLength: <integer>}}
      

      Then, we can use these expression to emit MatchExpressions for the JSON Schema "minLength" and "maxLength" keywords.

      Attachments

        Activity

          People

            natalia.jacobowitz Natalia Jacobowitz
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: