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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • None
    • Querying
    • None
    • Fully Compatible
    • Query 2019-10-07

    Description

      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})

       

       

      Attachments

        Activity

          People

            anton.korshunov@mongodb.com Anton Korshunov
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: