【发布时间】:2021-09-06 04:31:06
【问题描述】:
我试图做的是使用 findByIdAndDelete() 函数从数据库中删除一个项目,而我遇到的问题是 Here is a image of the error(Please ignore all the other things)
在终端上显示的第一个错误旁边还有另一个错误
Both the errors are coming togehter
任何帮助将不胜感激。
【问题讨论】:
-
_id 开头有一个空格。难道是_id是手动添加的,不是自动生成的?
-
@masquerade817 是的,是手动添加的。