Wednesday, 14 November 2018

I'm having Mongoose and Node troubles — I'd like to build a website that recommends books, but having trouble working out how to query the database for 'most recommended' and other more complex queries.

I'd like to build a website that recommends books, using Mongoose, Express, Node and vue.I'm still in the planning stage, but before I begin I'd like to solve a couple of things that I don't know how to do:Are there best practices for having database models reference each other. e.g this person recommends these books and this book is recommended by the following people. Should both the book and the person be updated at the same time?How would I go about querying the database for something like 'most recommended non-fiction book'?Any prod in the right direction would be really appreciated. I've been stuck on this for a while!

Submitted November 14, 2018 at 11:36AM by RespectableCafe

No comments:

Post a Comment