PrismaP
Prisma14mo ago
5 replies
Werdox

How to query for is:{null} OR {something: true}

When I want to update a record in a table, for the
where
I need to query for a related object and I need to say if the related object does not exist (is null) or a property on the related object is something

psudo code
prisma.channel.update({where: {lastMessage: { OR: [ {is: null}, {someproperty: true} ] } }, data: {...}})

but the
OR
does not allow me to put is in it...
Was this page helpful?