allow access to system variables in regular find RHS

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It would be nice if $expr wasn't needed for comparison with $$NOW so that people could write:

      db.coll.find({date:{$gte:"$$NOW"}}) 

      This isn't a full solution to the problem of dynamic dates in find being able to use an index since it's not unlikely they would actually want to do math on the expression but we probably should find a way to allow that as well.

            Assignee:
            Unassigned
            Reporter:
            Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: