How to exclude fields on return in mongoose

前端 未结 0 1939
庸人自扰
庸人自扰 2020-12-11 00:49

I have the following code:

Post.create(req.body)
.then(post => res.status(201).json(post))
.catch(err => res.status(500).json(err))

It

相关标签:
回答
  • 消灭零回复
提交回复
热议问题