Invalid schema configuration: True
is not a valid type at path createdAt.immutable
#10761
Labels
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
Milestone
I updated to Mongoose 6.0.7 and all of my models use
timestamps: true
Here an example:
but when I try to run the project I get this error
this seems to be linked to this pull request #10267
because when I manually revert
schemaAdditions[createdAt] = { type: Date, immutable: true };
to
schemaAdditions[createdAt] = Date;
it works again
The text was updated successfully, but these errors were encountered: