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