Sunday, 1 January 2017

How to reference a user, into another collection they own?

For example,I have a User document which contains some info like email, name, password(hashed), address.I also would have Product document of products they post.How should I sctructure it so that I can easily query their posts?Should I save their id thats created with every mongo save in the product post?

Submitted January 02, 2017 at 05:03AM by farhansyed7911

No comments:

Post a Comment