$contains
Find all records where the value matches a given value (case insensitive).
- Javascript
- Go
- PHP
- API
const { data, error } = await kontenbase.service('posts').find({
where: {
name: { $contains: 'Ega' },
},
})
resp, err := client.Service("posts").Find()
.SetWhere(map[string]interface{}{
"notes": map[string]interface{}{
"$contains": "hello",
},
})
$res = $kontenbase->service('posts')->find([
'where' => [
'notes' => ['$contains' => 'hello']
]
]);
[GET]
https://api.kontenbase.com/query/api/v1/API_KEY/posts?name[$contains]=Ega