max
PPrisma
•Created by max on 11/7/2024 in #help-and-questions
Soft delete & include
I recently impemented soft-delete with prisma ClientExtentions and it works wonderfully, but:
When handling relational joins I cannot simply add a
{where: {isDeleted: false}}
to every include
statement with a deep patch function, cause to-one relations dont have where
.
Is there a generic way to add a where statement to every include?1 replies