db.collection('accounts') .aggregate() .match({ sys_agiletype: "expert", sys_status: true }) .lookup({ from: 'rel-exptags', let: { id: '$_id', }, pipeline: $.pipeline() .match(_.expr($.and([ $.eq(['$id_expert', '$$id']),
//怎么在这里加上 tags: _.all(['cloud', 'database']) ]))) .project({ _id: 0, inf_tagstype:1, id_tags:1, }) .done(), as: 'type',
如何在子表expr条件里面加上这个条件里面加上 tags: _.all(['cloud', 'database']); |
