DEV Community

Discussion on: Mongodb-native over mongoose?

Collapse
 
mrm8488 profile image
Manuel Romero

You could create a joi schema as MW to validate your data and keep a reference of what kind of data you are saving.

Collapse
 
tojacob profile image
Jacob Samuel G.

In fact, I use joi, it is very good and allows for deeper validations, even sanitation and escaping.