Filter $lookup results
问题 I have 2 collections (with example documents): reports { id: "R1", type: "xyz", } reportfiles { id: "F1", reportid: "R1", time: ISODate("2016-06-13T14:20:25.812Z") }, { id: "F14", reportid: "R1", time: ISODate("2016-06-15T09:20:29.809Z") } As you can see one report may have multiple reportfiles . I'd like to perform a query, matching a report id , returning the report document as is, plus an additional key storing as subdocument the reportfile with the most recent time (even better without