[SERVER-29575] Add an $_internalSchemaXor MatchExpression Created: 12/Jun/17  Updated: 30/Oct/23  Resolved: 05/Jul/17

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.5.10

Type: Task Priority: Major - P3
Reporter: Kyle Suarez Assignee: Anne Lim
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change
Sprint: Query 2017-07-10
Participants:

 Description   
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.



 Comments   
Comment by Githook User [ 05/Jul/17 ]

Author:

{u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'kyle.suarez@mongodb.com'}

Message: SERVER-29575 fix lint
Branch: master
https://github.com/mongodb/mongo/commit/c266f741519256bbd22220962c5494742d7882b9

Comment by Githook User [ 05/Jul/17 ]

Author:

{u'name': u'Anne Lim', u'email': u'anne.lim@mongodb.com'}

Message: SERVER-29575: Add an $_internalSchemaXor MatchExpression
Branch: master
https://github.com/mongodb/mongo/commit/4ca0e0a50a58dc1cb3b798c962e943170162c1ec

Comment by Githook User [ 30/Jun/17 ]

Author:

{u'name': u'Anne Lim', u'email': u'anne.lim@mongodb.com'}

Message: Revert "SERVER-29575: Add an $_internalSchemaXor MatchExpression"

This reverts commit 097564f0404b75305767143dd322b115606e61bc.
Branch: master
https://github.com/mongodb/mongo/commit/c4da343784a1b8b19b1b5bbbfd38899550120792

Comment by Githook User [ 30/Jun/17 ]

Author:

{u'name': u'Anne Lim', u'email': u'anne.lim@mongodb.com'}

Message: SERVER-29575: Add an $_internalSchemaXor MatchExpression
Branch: master
https://github.com/mongodb/mongo/commit/097564f0404b75305767143dd322b115606e61bc

Comment by Kyle Suarez [ 21/Jun/17 ]

Done.

Comment by David Storch [ 21/Jun/17 ]

Should it not be called $_internalSchemaXOR? I think it should, since this is not meant to be part of our user-facing API.

Generated at Thu Feb 08 04:21:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.