79290780

Date: 2024-12-18 10:41:40
Score: 1.5
Natty:
Report link

just convert the mongo doc to js object

const data = (await User.create(newUser)).toObject();

then you can delete it

delete (data as any).password;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Andre wijaya