"As" array returned by $lookup stage does not display correctly in sample of documents

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.14.0-beta.1
    • Component/s: Aggregation pipeline
    • None
    • Environment:
      OS X
    • Sprint Vanilla Ice, Sprint Wyclef Jean
    • None
    • None

      Running the following aggregation pipeline query against the air_alliances and air_airlines datasets from the M121 course, the sample documents returned do not display the contents of the returned as: "alliance" array (you can see the empty array in the attached screenshot).   The subsequent match query displays the results correctly, so this is a display bug not an aggregation pipeline bug.

       db.air_airlines.aggregate(
      [
      {"$match": {"country":

      {"$in": ["Spain", "Germany", "Canada"]}

      }},
      {"$lookup": {
      "from": "air_alliances",
      "foreignField": "airlines",
      "localField": "name",
      "as": "alliance"
      }},
      {"$match": {"alliance.name": "OneWorld"}}
      ])

       

            Assignee:
            Unassigned
            Reporter:
            Charles Kalmanek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: