“$__” is not allowed [closed]

2019-08-20 12:11发布

问题:

I use Joi for validation. I send a POST request with Postman and get this response "$__" is not allowed.

Can't find any reference related to that.

回答1:

Don't use Joi, mongoose has its own validator. Write your own validation on the Model declaration.