Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 324 Bytes

File metadata and controls

10 lines (8 loc) · 324 Bytes

How things should works

let event = await Event.findById(req.params.id)
                       .include('comments', attr: '_id summary')
                       .where('comments.summary': "dude")
// event == { title: " ", comments: [ { _id: "asfsdafasdffasd", summary: "dude" } ] }
  • What about include "where"