DEV Community

Is it good practice to validate on schema mongoose?

Jokoy on August 06, 2020

Hello guys, I'm still new on backend development. I would like to ask what is the good practice for validating data. Should I put the validation on schema or use the validation on expressjs?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

I would do both.