mirror of
https://github.com/directus/directus.git
synced 2026-01-25 08:47:55 -05:00
20 lines
354 B
Markdown
20 lines
354 B
Markdown
# Single
|
|
|
|
Using `single` the first element will be returned.
|
|
|
|
<!-- prettier-ignore-start -->
|
|
::: tip NOTE
|
|
Instead of returning a list, the result data will be a single object representing the first item.
|
|
:::
|
|
<!-- prettier-ignore-end -->
|
|
|
|
## Examples
|
|
|
|
```
|
|
# Returns the first item of the result set
|
|
?single=1
|
|
|
|
?filter[author][first_name]=Rijk
|
|
&single
|
|
```
|