Day 9 of building DevTinder 🖤 Today’s focus: mastering relationships in MongoDB with Mongoose 🚀 Learned ref + populate to link collections Designed APIs to handle relational data Focused on scalability & clean code ✨ ref & populate make APIs powerful, maintainable & fast.
2
0
5
62
0
Download Image
@_sumitjha_ Nice! Given that you have that USER_SAFE_DATA list of fields, you may want to know we recommend not storing password hashes in user models: thecodebarbarian.com/thoughts-on-us… - I suspect that's why you're using projections there Might also try plugins like mongoose-hidden for that