alfateam/orange-orm

ANDing an array of filters gives sql error

Closed this issue · 0 comments

lroal commented
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'