select
Allows to pick which fields to include in the result.
- Javascript
- Go
- PHP
- API
const { data, error } = await microgen.service('posts').find({
select: ['name', 'notes'],
})
resp, err := client.Service("posts").Find()
.SetSelect([]interface{}{"name", "notes"})
$res = $microgen->service('posts')->find([
'select' => ['name', 'notes']
]);
[GET]
https://database-query.v3.microgen.id/api/v1/API_KEY/posts?$select[0]=name&$select[1]=notes