var orders = await Order.find()
.populate({path: 'buyer', match: {token: user.token}, populate: {path: 'primaryCharacter'}})
.populate({path: 'builder', populate: {path: 'primaryCharacter'}})
.exec();
因此,此查询将返回买方与给定令牌匹配的订单,并且还返回令牌与买方不匹配(仅买方为空)的订单。无论如何,既要填充买方字段又要与构建者字段同时也匹配参数?还是我应该总是退回所有订单然后手动排序?