crud
crud copied to clipboard
Filtering with soft-deleted items
I am trying to filter the soft-deleted items in my project but the default getManyBase route already ignores the soft-deleted items. Can i enable the withDeleted option through the @Crud decorate. Something like:
@Crud({
...
query?: {
allow?: string[];
exclude?: string[];
persist?: string[];
filter?: QueryFilterOption;
join?: JoinOptions;
sort?: QuerySort[];
limit?: number;
maxLimit?: number;
cache?: number | false;
alwaysPaginate?: boolean;
withDeleted?: boolean;
},
...
})
Same question here
Please help ,How list soft deleted items