Tsallaka zuwa abun ciki
Justice Tech School

One to Many Modeling

Embed few, reference many.

Example
{
  _id: 1,
  title: "Book",
  reviews: [{ by: "Zara", stars: 5 }]
}

Exercise

Array of items.

reviews: []

Quiz Test

Embed when the child list is...?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.