SQL to MongoDB - Doubt (beginner)

Hello @Adi_Lubos, Welcome to the MongoDB Community forum!

The weak entity relationship is a one-to-many (in this case). The way to model this is with Embedded Documents as an array field.

method:

{
    id: 1234,
    description: 'Data Modeling Exercise',
    experiments: [
        { id: 1, name: 'Build relationships' },
        { id: 2, name: 'Draw diagrams' },
        ...
    ]
}

Reference:

2 Likes