mongodb empty aggregate code example
Example: unwind check after null or undefined
{
$unwind:
{
path: "$applications",
preserveNullAndEmptyArrays: true
}
}
{
$unwind:
{
path: "$applications",
preserveNullAndEmptyArrays: true
}
}