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

dotted expression with expressive lookup don't get expanded

    • Fully Compatible
    • ALL
    • Query 2017-11-13, Query 2017-12-04

      {$lookup:{ from:'x',
                       let: { a : "$$ROOT"},
                       pipeline: [ {$addFields:{a:"$$a.field"}} ]
      ...
      }}
      

      Referencing "$$a.field" returns full object "$$a" instead of just field 'field'

            Assignee:
            james.wahlin@mongodb.com James Wahlin
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: