Make positional projection internal expression able to access Document pre-image

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • Query 2019-10-07
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As discussed in person this is necessary for cases like 

      E.g.
      Document: {a: 1, b: [3, 4, 5]}

      // We'll re-apply the match expression {a: 1, b: 3} to the post-image of the document, which won't have an 'a' field.
      Query: db.c.find({a: 1, b: 3}, {b.$: 1})

       

       

            Assignee:
            Anton Korshunov
            Reporter:
            Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: