$lte
Find all records where the value is less and equal to a given value.
- Javascript
- Go
- PHP
- API
const { data, error } = await kontenbase.service('posts').find({
where: {
total: { $lte: 10 },
},
})
resp, err := client.Service("posts").Find()
.SetWhere(map[string]interface{}{
"number": map[string]interface{}{
"$lte": 10,
},
})
$res = $kontenbase->service('posts')->find([
'where' => [
'total' => ['$lte' => 10]
]
]);
[GET]
https://api.kontenbase.com/query/api/v1/API_KEY/posts?total[$lte]=10