DEV Community

Jokoy
Jokoy

Posted on

Is it good practice to validate on schema mongoose?

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?

Top comments (1)

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

I would do both.