https://stackoverflow.com/questions/19380738/mongoose-nested-query-on-model-by-field-of-its-referenced-model
const result=await Company.aggregate([
{$lookup: {
from: 'persons',
localField: 'founder',
foreignField: '_id',
as: 'founder'}
},
{$unwind: {path: '$founder'}},
{$match: {'founder.lastname': 'Robertson'}}
]);