Simple, self-explanatory code snippets.
db.COLLECTION_NAME.aggregate([
{$unwind: {
"path": "$FIELD_NAME",
"preserveNullAndEmptyArrays": true
}}
]);
No comments:
Post a Comment