Skip to content

Commit

Permalink
Doc: Incorrect property in example code
Browse files Browse the repository at this point in the history
The Api code sample is specify to pass an object for the query arguments containing a `_fields` property while the right one is `fields`.
  • Loading branch information
widoz authored Apr 4, 2024
1 parent 1e660d1 commit f43027e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const MyComponent (props: Props) => {
new Set(['page']),
{
per_page: 10,
_fields: ['slug', 'title']
fields: ['slug', 'title']
}
)
.then(setEntities);
Expand Down

0 comments on commit f43027e

Please sign in to comment.