Greetings! I’m new to MongoDB but I’ve looked at the documentation for a lot of the aggregation related commands. I was wondering about a portion of an aggregatetion I am currently working with:
// name is a predefined variable for a part name
{
$lookup: {
from: "parts",
let: {
family: name,
isParent: false,
},
pipeline: [
{
$match: {
family: "$family",
isParent: "$isParent",
},
},
],
as: "products",
},
},
I’m just a little confused on how to properly configure this properly. Currently it adds the products array to my current aggregate function, but it is completely devoid of content.