Closed durveshparmar closed 1 year ago
my suggestion : i guess the document type should be wrapped by HydratedDocument like this:
const ExampleModel: SoftDeleteModel<HydratedDocument<Your-Interface>> = mongoose.model("Example", exampleSchema);
I will try this one and update here. Thanks for your response though
Hi All,
I am trying to use this plugin in node typescript and I am facing error message as per the title which is as following.
CODE Is as Following:
Package Versions: "mongodb": "^4.4.1", "mongoose": "^6.2.9", "mongoose-delete": "^0.5.4", "@types/mongoose-delete": "^0.5.9",
Please let me know what should be the solution in this case.
Thanks and regards.