const orders = await CustomerOrder.find(matchParameter)
.populate({
path: 'product_list.product_id',
select: 'general links options model',
populate: {
path: 'links.manufacturer',
select: 'name',
}
})
.populate({ path: 'customer_info' , match:{name:"test"}})
.select('order_no promo_code order_type order_class customer_info method product_list createdAt paid_amount status')
.skip((req.query.page - 1) * parseInt(req.query.limit))
.limit(parseInt(req.query.limit))
.sort(sort_parameter)
.lean(true)
.exec()
我在填充匹配名称时遇到问题,但它返回的名称为空字段