Skip to content

Soft Deletes with single View? #2383

Answered by steve-chavez
drmnk asked this question in Q&A
Discussion options

You must be logged in to vote

"select * except rows with deleted_at"
But if I want to get access to all, even "soft-deleted" rows with Postgrest - there is no way to get it from existed view, true?

Yes, since you won't have the deleted_at column to filter on.

I should create another view "ProductsWithDeleted", yes?

Yeah. I guess if you want to save code maybe you could use a function instead and have a soft-deleted parameter with a default value.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by drmnk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2382 on July 21, 2022 18:39.