Intente cambiar el SchemaType de _id a ObjectId.
_id : ObjectId
Además, no necesita declarar explícitamente el campo _id. Se crea automáticamente para todos los esquemas Mongoose.
Intente cambiar el SchemaType de _id a ObjectId.
_id : ObjectId
Además, no necesita declarar explícitamente el campo _id. Se crea automáticamente para todos los esquemas Mongoose.