Patrick
08/08/2021, 8:12 AMconst users = await prisma.users.findMany({
where: {
name: // not null
}
})Ryan
08/09/2021, 7:38 AMawait prisma.user.findMany({ where: { name: { not: null } } })
Using ctrl+space inside the name block should give you all the supported operators 🙂Patrick
08/09/2021, 9:15 AM{ not: null } Is this expected?Ryan
08/09/2021, 9:38 AM{ not: null } will execute the SQL query is not null , which is exactly what you require.Patrick
08/09/2021, 9:47 AMRyan
08/09/2021, 9:51 AMwhere .Ryan
08/09/2021, 9:51 AMwhere could be highly dynamic.Patrick
08/09/2021, 9:53 AM