Node JS
Tuesday, 15 October 2019
Where do you put validation logic? Controller or Model schema?
You can use express-validator for validation logic in controller and middleware. Or mongoose built-in schema validation to define it in model schema.Which one do you use?
Submitted October 15, 2019 at 03:21PM by netok
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment