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

Create $alwaysTrue and $alwaysFalse MatchExpressions

    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

      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 }
      

      Attachments

        Activity

          People

            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: