79250782

Date: 2024-12-04 10:37:36
Score: 1
Natty:
Report link

If you want to remove certain item you can do

Query.select("-password")

But if you want to remove certain items from populated items you have to do for eg: if you are populating from a field named userID

Query.populate(path:"userID", select:"-password")

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohamad Umar