I joined this new project that is using MongoDB, and I saw this structure:
collection: Users
salutation (ObjectId) name (String) status (ObjectId)
ObjectId("111") Mark ObjectId("112")
collection: Values
_id description (String)
ObjectId("111") Mr.
ObjectId("112") active
For all the values that are not changeable, they are referring to the id of the Values collection. I don't know if it's a common practice in the relational data bases, but I haven't seen it in MongoDB so far.
They use Nestjs and Mongoose.
For each request they need to query Users collection and multiple times Values collection. Is this a good approach?