Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include soft deleted rows #837

Closed
its-dibo opened this issue Apr 19, 2024 · 1 comment
Closed

include soft deleted rows #837

its-dibo opened this issue Apr 19, 2024 · 1 comment

Comments

@its-dibo
Copy link

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
Copy link
Author

moved to gid-oss#47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant