custom error message and clean code
add custom error message by doing array
const volderSchema = new Volder({
name:{
type:[String, 'type should be string']
})
add custom error message by doing array
const volderSchema = new Volder({
name:{
type:[String, 'type should be string']
})