Can I chain together a $or then a $nor operator when writing a mongoDb Query in node?
const filtersStage = [{
$match: {
$or: orConditions,
$nor: norConditions
}
}]
const cursor = collection.aggregate([...filtersStage])
I keep getting: err "$and/$or/$nor must be a nonempty array", however if I remove one of the operators (either one), the error goes away.
How can I filter by $or and $nor in the same stage?