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

Create a $_internalSchemaCond MatchExpression

    XMLWordPrintableJSON

Details

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

    Description

      Proposed Syntax

      { $_internalSchemaCond:
          [
              <conditionMatchExpression>,
              <thenBranchMatchExpression>,
             <elseBranchMatchExpression>
          ]
      }
      

      Proposed Semantics

      A document is matched against the condition MatchExpression. If it matches, it is then matched against the thenBranch expression; otherwise, it is matched against the elseBranch expression. The document matches the entire $_internalSchemaCond expression based on whether or not it matches the thenBranch or elseBranch.

      $_internalSchemaCond can be used to constrain a subobject if it is wrapped in an $_internalSchemaObjectMatch.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: