Mongoose Enum Number
The enums here are basically String objects. They cant be Numbers
All SchemaTypes have the built-in required validator.The required validator uses the SchemaType's checkRequired() function to determine if the value satisfies the required validator.
Numbers have min and max validators.
- Strings have enum, match, maxlength and minlength validators.