When getting all properties, I want to know the first&last name of each one, but not sure how can I do it in once ? or should I index it with cron job ? how do I do that ?
Hello @David_Tayar, welcome back to the MongoDB Community forum!
As you are using Mongoose, you can use the populate(), which says:
MongoDB has the join-like $lookup aggregation operator in versions >= 3.2. Mongoose has a more powerful alternative called populate(), which lets you reference documents in other collections.
Population is the process of automatically replacing the specified paths in the document with document(s) from other collection(s).