Adding model validation

Mongoose allows you to add additional properties to a model that define how it can be saved or updated.


This is a companion discussion topic for the original entry at https://vuejsdevelopers.com/lessons/adding-model-validation/2/