Drizzle relational query, filters

I'm trying to add some simple filters to my query, as according to https://orm.drizzle.team/docs/rqb#select-filters
I've tried both where: eq(users.id, 1) syntax, and where: (users, { eq }) => eq(users.id, 1),
  • both result in
    Type '{ where: SQL<unknown>; }' is not assignable to type 'true | { columns ?: ... 
    Object literal may only specify known properties, and 'where' does not exist in type '{ columns ?: .....
ow do I add more filters to a relational query?
image.png
Was this page helpful?