Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

TypeError: Invalid schema configuration: `True` is not a valid type at path `id.required`. See https://bit.ly/mongoose-schematypes for a list of valid schema types.]

// In mongoose model in nodeJS

// Be careful
// I don't know if this is the same problem with you but it's:
name: { 
  type: String,
}
//and not
name: { 
  String,
}
 
PREVIOUS NEXT
Tagged: #Invalid #schema #valid #type #path #See #list #valid #schema
ADD COMMENT
Topic
Name
5+8 =