📜  猫鼬填充过滤器 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:46.548000             🧑  作者: Mango

代码示例1
Story.
  find(...).
  populate({
    path: 'fans',
    // filtering field, you can use mongoDB syntax
    match: { age: { $gte: 21 } },
    // Explicitly exclude `_id`, see http://bit.ly/2aEfTdB
    select: 'name -_id'
  }).
  exec();