$in
Find all records where the property does match any of the given values.
- Javascript
- Go
- PHP
- API
const { data, error } = await kontenbase.service('posts').find({
where: {
name: { $in: ['Ega'] },
},
})
resp, err := client.Service("posts").Find()
.SetWhere(map[string]interface{}{
"status": map[string]interface{}{
"$in": []interface{}{"todo", "done"},
},
})
$res = $kontenbase->service('posts')->find([
'where' => [
'name' => ['$in' => ['Ega', 'Radiegtya']]
]
]);
[GET]
https://api.kontenbase.com/query/api/v1/API_KEY/posts?name[$in][0]=Ega