Files
directus/docs/reference/api/query/single.md
2020-12-09 19:31:16 -05:00

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
```