include soft deleted rows
its-dibo opened this issue · 1 comments
its-dibo commented
I want to include the soft deleted rows for all getOneBase
operations, but not getManyBase
CrudConfigService.load({
getOneBase: {
query:{
withDeleted: true,
}
}
})
also, ...
@Override()
getOne(@parsedReq() req: any){
let options = { withDeleted: true, }
return this.base.getOneBase(req, options)
}
creating a new custom method doesn't give the same signature as the inherited getOneBase
@GET()
findOne(@Req() req: any){
// won't work as expected, and all queries must be implemented manually, such as filter, ...
// there is no exposed functionality to convert req into parsed req, even `(@ParsedReq() req)` gives undefined
return this.base.getOneBase(req)
}
its-dibo commented
moved to gid-oss#47