MongoDB Tutorial 0/120 lessons ~6 min read Lesson 53
Unwind Stage
$unwind turns an array field into one document per element.
Course progress0%
Focus
2 guided sections
Practice signal
Concept-first lesson
Career prep
Foundation builder
Introduction
$unwind turns an array field into one document per element. It's how you 'flatten' arrays for grouping, joining or reporting.
Syntax reference
js
{ $unwind: "$tags" }
Ready to mark this lesson complete?Track your journey across the entire course.