PrismaP
Prisma14mo ago
Dobleuber

Checking Null or empty list

I have a field of type integer list in my DB.
I want to add a filter if is empty or null,
{
  OR: [
    { myList: { isEmpty: true } },
    { myList: { equals: null } }
  ]
}

But I am getting this error

Argument `equals`: Invalid value provided. Expected Null, provided (Null)."

I had tried a lot of the stuff already, but I don't know how to fix this error, any help pls?
Was this page helpful?