diff --git a/docs/controllers.md b/docs/controllers.md index 28fc5703..ce3d8c5e 100644 --- a/docs/controllers.md +++ b/docs/controllers.md @@ -394,6 +394,7 @@ Also you can specify what routes should be excluded or what routes whould be use maxLimit?: number; cache?: number | false; alwaysPaginate?: boolean; + softDelete?: boolean; }, ... }) @@ -632,6 +633,18 @@ _Optional_ Either or not always return an object with paginated data. Can be defined [globally](#global-options) as well. +#### softDelete + +```typescript +{ + softDelete: true, +} +``` + +_Optional_ + +A boolean value indicating whether the item should be soft-deleted. If set to true, the item will be soft-deleted instead of being permanently removed from the database. + ### dto ```typescript