I'm currently writing an application using the MEAN stack, pretty much only for fun and because MEAN is "cool" at the moment.
Therefore I'm thinking about the database layout. The data needed to be saved represents a music collection. So I had two ideas. But because I'm quite new to NoSQL, I don't know which one I should use or if both of them are rubbish.
First idea:
One big collection "artists" with an array "albums". This array also has an array called "songs". Here I don't know what to do about playlists!
Second idea:
Four collections "artists", "albums" ,"songs" and "playlists" all linked using the _id field - This is how I would do it in a traditional database, like MySQL.
Which one would in your opinion fit better and - that's what I'm even more interested in - why?