DEV Community

Discussion on: MySQL or MongoDB? What to Choose for your Next Project?

Collapse
 
abdurrkhalid333 profile image
Abdur Rehman Khalid

Hmm, I guess I should have used an example there,

Let's say you have the Relation of Book and Authors so in MongoDB you can do it in the following two ways:

book {
authors: [
"Author1",
"Author2"
]
}

And Also by this way

book {
authors: [
......ids here.
]
}

so this is a minute difference.