MongoDB card review1 min read
mediumWhat is the $unwind stage in MongoDB aggregation?
$unwind breaks an array field into separate documents. Each element in the array becomes its own document in the aggregation pipeline. It is useful when processing array-based data.