alfateam / orange-orm

The ultimate ORM for Node and Typescript
https://orange-orm.io
ISC License
623 stars 20 forks source link

ANDing an array of filters gives sql error #57

Closed lroal closed 8 months ago

lroal commented 8 months ago
const filter = db.foo.id.eq(1);
const rows = await db.foo.getMany(db.and( [filter] )):
//error: An expression of non-boolean type specified in a context where a condition is expected, near 'order'