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

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

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

      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@mongodb.com Anton Korshunov
            Reporter:
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: