crud icon indicating copy to clipboard operation
crud copied to clipboard

Filtering with soft-deleted items

Open quangtudng opened this issue 5 years ago • 2 comments

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;
  },
  ...
})

quangtudng avatar Oct 12 '20 02:10 quangtudng

Same question here

sofia-cloudman avatar Nov 10 '21 15:11 sofia-cloudman

Please help ,How list soft deleted items

abhishek-p-au16 avatar Sep 06 '22 10:09 abhishek-p-au16