Right now the data model for a playlist is this:
document...
.... id
.... title
..... songs [
..........id1
..........id2
..........id3
]
but we need to move to a songs array that has maps inside, so that each item can contain more metadata:
songs [
{ order: 1, dateAdded: 3-3-2021, songId: 234234 }
{ order: 2, dateAdded: 3-3-2021, songId: 875234}
{ order: 3, dateAdded: 3-3-2021, songId: 243890 }
]
This will allow us better ordering and presentation in the UI
Right now the data model for a playlist is this:
document...
.... id
.... title
..... songs [
..........id1
..........id2
..........id3
]
but we need to move to a songs array that has maps inside, so that each item can contain more metadata:
This will allow us better ordering and presentation in the UI