1602 / jugglingdb

Multi-database ORM for nodejs: redis, mongodb, mysql, sqlite3, postgresql, arango, in-memory...
http://1602.github.io/jugglingdb/
2.05k stars 241 forks source link

how to query field in multiple values? #452

Closed TangMonk closed 7 years ago

TangMonk commented 7 years ago

just like this:

Car.all({where: {car_id: [61, 58]}}).then((cars)=>{
  console.log(cars);
})
1602 commented 7 years ago

Try Car.all({where: {car_id: {inq: [61, 58]}}})