Not equal with relational queries

Has anyone used ne with relational queries? When I use the callback syntax, I get the following type error:
where: (table, { ne }) => ne(table.name, "name")
^^ Property 'ne' does not exist on type { ... }
where: (table, { ne }) => ne(table.name, "name")
^^ Property 'ne' does not exist on type { ... }
2 Replies
MAST
MAST16mo ago
It's missing from that object AFAIK. You can manually import it from drizzle-orm and it should work.
Andrii Sherman
Andrii Sherman16mo ago
+ we will add all of them to callback as well
Want results from more Discord servers?
Add your server