Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose required

const schema = new Schema({
  name: {
    type: String,
    required: true
  }
});
 
PREVIOUS NEXT
Tagged: #mongoose #required
ADD COMMENT
Topic
Name
9+6 =