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

Add an $_internalSchemaXor MatchExpression

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.10
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Minor Change
    • Query 2017-07-10

      Proposed Syntax / Implementation

      $_internalSchemaXor will be a ListOfMatchExpression that combines other MatchExpressions, and is available everywhere that $and and $or are accepted.

      { $_internalSchemaXor: [<MatchExpresssion>, <MatchExpression>, ...] }
      

      This will allow us to implement JSON Schema's "oneOf" keyword.

            Assignee:
            anne.lim Anne Lim
            Reporter:
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: