I have a model that looks like this:
Member {
memberId: {
type: String,
required: true
},
customPlaylists: {
type: Array,
default: []
}
}
In the customPlaylists array I store objects that look like the following:
{ name: ‘playlistName’, urls: } // urls contain strings of YouTube urls
Is there a way to delete a URL from urls array by its index in the array? Should I do something different with my schema in order to do this right?