Create $alwaysTrue and $alwaysFalse MatchExpressions

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

      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 }
      

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

              Created:
              Updated:
              Resolved: