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

array in $lookup localField should not be interpreted literally

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • ALL

      In $lookup if the value of localField is an array, we try to use it as a literal array to match foreignField. That seems wrong (or at least not useful). It should instead use the content of the array field as $in in the lookup rather than $eq.

            Assignee:
            Unassigned Unassigned
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: