Create a $_internalSchemaCond MatchExpression

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.5.11
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • Query 2017-07-31
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Kyle Suarez (Inactive)
            Reporter:
            Kyle Suarez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: