当我在创建用户时将电子邮件保持为空时,我可以看到我在模式required: [true, 'A user must have an email address']中定义的已创建的错误消息。然而,如果我选择一个已经被其他用户使用的电子邮件地址,我会得到一个不同的错误,我无法看到我在unique字段unique: [true, 'A user with that email addressThe email must be unique.']中定义的自
我在猫鼬中有这个模式,当我使用pre with update时,我会得到这个错误。_lazySetupHooks (C:\web\production01_server\node_modules\production\node_modules\mongoose\node_modules\lib\query.js:804:16) at C