v2.3.0
2.3.0 (2024-06-23)
Added the WHEREIN
subcommand to allow to filter values in a search by whether they're contained in an
input array of values.
await tile38
.set('fleet', 'truck1')
.fields({ weight: 9001 })
.point(33.5123, -112.2693)
.exec();
await tile38
.set('fleet', 'truck2')
.fields({ weight: 9003 })
.point(33.5123, -112.2693)
.exec();
let response = await tile38.scan('fleet').wherein('weight',[9003]).asCount().exec();
console.log(response)
> {"ok":true,"count":1,"cursor":0,"elapsed":"2.078168ms"}
response = await tile38.scan('fleet').wherein('weight',[9001,9003]).asCount().exec();
console.log(response)
> {"ok":true,"count":2,"cursor":0,"elapsed":"2.078168ms"}
Features
- ✨ add WHEREIN subcommand (f314df9)
- ✨ add WHEREIN to intersects, within, nearby, scan and search (251ff88)