Express Validator not working with Async Await Mongoose query

前端 未结 0 1688
小鲜肉
小鲜肉 2021-01-02 19:50

I\'m tryin out express-validator and i want to check if the username is exists or not like this:

check(\'username\', \'Please add username!\')
    .notEmpty()         


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