Debe agregar preserveNullAndEmptyArrays
propiedad dentro de su $unwind
operación como esta:
{
$unwind:
{
path: "$applications",
preserveNullAndEmptyArrays: true
}
}
Debe agregar preserveNullAndEmptyArrays
propiedad dentro de su $unwind
operación como esta:
{
$unwind:
{
path: "$applications",
preserveNullAndEmptyArrays: true
}
}