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

Create a $_internalSchemaAllowedProperties MatchExpression

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.13
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • Query 2017-07-10, Query 2017-07-31, Query 2017-08-21, Query 2017-09-11

      Proposed Syntax

      $_internalSchemaAllowedProperties has the following form:

      { $_internalSchemaAllowedProperties: {
              properties: <list of strings>,
              namePlaceholder: "i",
              patternProperties: <regex-expression-list>,
              otherwise: <schema>
          }
      }
      

      <regex-expression-list> has the following form:

      [
          {regex: <regex>, expression: <MatchExpression>},
          ....
      ]
      

      To constrain a subobject, wrap it in an $_internalSchemaObjectMatch.

            Assignee:
            kyle.suarez@mongodb.com Kyle Suarez
            Reporter:
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: