Tuesday, 5 November 2019

How to handle user data in mongodb ?

Hi ! I have some user data to store on mongodb (password, email, phone) and some data connected to this user, the 5 movies he likes for instance. The list of movies can change often if the user wants it.Do you put everything inside the same collection 'User' or do you create a collection called 'User' and 'Movies' ?

Submitted November 05, 2019 at 03:45PM by Foetu

No comments:

Post a Comment