I find this to be very common, but lack the background knowledge to understand why this is done over relational.
{
post_id: 123,
text: 'hi',
created_at: 1497832162891,
comments: [
comment_id: 456,
text: 'hey',
created_at: 1497832162892,
nestedComments: [...], // which also have nested comments
],
}
Doesn't this get pretty awkward if you have a larger number of nested comments? Is it hard or slow to delete one?
Isn't it a better practice most of the time to just have the posts and comments in different collections, with the comments containing the parent id to "join" them, so you basically end up doing relational with NoSQL anyway?
Another example is what if you have a scenario like "users watch this show". If the show ends up being removed from the NoSQL database, wouldn't it be difficult to remove all instances of that show leftover in the user's embedded shows data?