Hamed Mohammadzadeh
Hamed Mohammadzadeh
How can add plugin in my code? for paginate I do this: ```ts type PaginateMethod = ( query?: FilterQuery, options?: PaginateOptions, callback?: (err: any, result: PaginateResult) => void ) =>...
mongoose-delete have Method overridden like countDeleted,... and when I use MemberMode.countDeleted type script show error this model haven't countDeleted and I must add `as ISoftDeleteModel` any model to access IntelliSense
> I have similar problem, only with dark theme. > Example errors: > > ``` > Failed to compile. > > ./node_modules/antd/es/empty/style/index.less > > &-ellipse { > fill-opacity: 0.08; >...
Nodejs:14.18.3 Tested Mongoose 6.4.4 and 6.5.0 and 6.5.2 Typegoose latest version 9.11.0
I think must extends mongoose.Document. Is right? ``` class BaseModel extends mongoose.Document{ ... } ```
I cast beacuse i use mongoose-delete and I can't find sample for use it.
I try delete mongoose and typegoose package and then first install typegoose and then mongoose this problem fixed but when remove node_modules and package-lock.json and then npm i this error...
Can sample code for mongoose delete ?
> maybe try running and checking the output of npm ls mongoose and npm ls @typegoose/typegoose I must run this and send result for u?
I mean how use `SoftDeleteModel`