Ratings should be stored as {"id": {"userid":username.tolower(), "songid":fullsongid}, "rating":rating}
Ratings will be either "like" or "dislike", or if there's no rating stored it's neutral. Boolean storage format may work.
Note: The id field needs to be stored properly as BSON, to preserve key order
Ratings should be stored as {"id": {"userid":username.tolower(), "songid":fullsongid}, "rating":rating} Ratings will be either "like" or "dislike", or if there's no rating stored it's neutral. Boolean storage format may work. Note: The id field needs to be stored properly as BSON, to preserve key order