let query = Order.find();
query.where({'buyer_info.buyer_openid' : openid});
query.populate([
{
path : 'buyer',
select : 'buyer_info',
model : Buyer
},
{
path : 'house',
select : 'house_info',
model : House
}
]
);
let dbQueryData = await query.exec();
条件不在这个要查询的表里面,而在关联的表里面,那么要怎么写呢?