lookup static method
Implementation
static Map<String, Object> lookup({
required String from,
required String localField,
String foreignField = '_id',
String? as,
}) {
if (as == null) {
as = '${from}_info';
}
return {
'\$lookup': {
'from': "$from",
'localField': "$localField",
'foreignField': "$foreignField",
'as': "$as"
}
};
}