Otherwise, it is big pain to $match all documents containing a "string" with a $regex, replaceAll, combine with other documents not matching, then continue with the aggregation...
I might be wrong, please tell if it could be achieved easily otherwise.
Otherwise, it is big pain to $match all documents containing a "string" with a $regex, replaceAll, combine with other documents not matching, then continue with the aggregation...
I might be wrong, please tell if it could be achieved easily otherwise.