Posted on
mongoose
lean function
After your mongoose query, using Query class, you can apply lean fuction. If you apply the lean function, you can simplify the query result which is containing addtional functions, variable of mongoose.
So you can get pure Javascript object by applying lean function.