How to check if is not null
Hello,
i want to find all users where name is not null. How to do in this situation?
3 Replies
If I'm not mistaken there is special helper function for that. Check this out:
https://orm.drizzle.team/docs/operators#isnotnull
Filter and conditional operators – DrizzleORM
Drizzle ORM | %s
im trying it,
but it still return users without name :/ may be bug?
You can try to directly pass the
SQL
part:
Note: I am not sure why you want to check the users.name = 'test'
while also checking if the users.name
is not null. The first query should be enough (since test
!= null)