Answers for "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.]"

0

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,
}
Posted by: Guest on April-28-2022

Code answers related to "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.]"

Code answers related to "Javascript"

Browse Popular Code Answers by Language