In my React app, I have collections User, Post, Like, and Comment.
The users can both comment and like posts.
My comment collection has fields post_id, user_id, and text.
My like collection has fields post_id and user_id.
But I want the users to vote comments up or down (just like on SO).
What should the database structure be like? I could have two fields in each comment user_ids_vote_up and user_ids_vote_down which are just arrays of user ids. But is this the right approach? I have read many places that the documents are limited in size, so the right thing is to store these votes/likes in a separate collection.