[SERVER-30028] Create $alwaysTrue and $alwaysFalse MatchExpressions Created: 06/Jul/17  Updated: 30/Oct/23  Resolved: 25/Jul/17

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

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

Backwards Compatibility: Fully Compatible
Sprint: Query 2017-07-31
Participants:

 Description   

Create a new top-level operator AlwaysTrueMatchExpression that will always match. For AlwaysFalseMatchExpression, we will re-purpose the existing FalseMatchExpression and change the way it serializes.

Proposed Syntax

Both operators are top-level operators that take no path, and whose only argument is 1:

{ $alwaysTrue: 1 }
{ $alwaysFalse: 1 }



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

Author:

{'username': 'nzolnierzmdb', 'name': 'Nick Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com'}

Message: SERVER-30028: Create $alwaysTrue and $alwaysFalse MatchExpressions
Branch: master
https://github.com/mongodb/mongo/commit/f22a10013a0aa26a4ad776e0f69e0ab5d33c5f86

Comment by Kyle Suarez [ 06/Jul/17 ]

CC david.storch

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