@Richard This is the point they're making in Step 3: Optionally prevent read/update of soft deleted records
So the soft delete middleware implementation in step 2 doesn't affect the behavior of findMany. You'd have to implement similar middleware to change the behavior of the target methods - or just filter in the application code directly.
👍 1
n
Nurul
08/18/2022, 8:56 AM
Hi Richard 👋
As Michael mentioned, you would need to handle this behaviour in middleware explicitly. Based on the middleware snippet in the blog example, it won’t affect the behaviour of findMany of user model.
r
Richard Kaufman-López
08/18/2022, 12:17 PM
@Nurul Thanks for confirming. I was afraid it wouldn’t affect the user model.
Thanks both of you!