re: Mongodb-native over mongoose? VIEW POST

FULL DISCUSSION
 

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

 

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

code of conduct - report abuse