Blade
TTCTheo's Typesafe Cult
•Created by Blade on 12/12/2024 in #questions
Exclude field depends on another field
i have schema model like this
and i have query like this
i want to include
createdBy
only if the question has the flag is_anonymous otherwise i don't want to populate the createdBy
object
i tried to use prisma extension but i cannot achieve this with only prisma queries i had to modify the data manually so any idea how to it?1 replies