Skip to content

Commit

Permalink
docs: add missing "curl --get" on embedding example
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenceisla committed Jul 2, 2024
1 parent 2fd5a00 commit b9004ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/references/api/resource_embedding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,12 @@ Filters can also be applied on nested embedded resources:
.. code-block:: bash
curl "http://localhost:3000/films?select=*,roles(*,actors(*))&roles.actors.order=last_name&roles.actors.first_name=like.*Tom*"
# curl "http://localhost:3000/films?select=*,roles(*,actors(*))&roles.actors.order=last_name&roles.actors.first_name=like.*Tom*"
curl --get "http://localhost:3000/films" \
-d "select=*,roles(*,actors(*))" \
-d "roles.actors.order=last_name" \
-d "roles.actors.first_name=like.*Tom*"
The result will show the nested actors named Tom and order them by last name. Aliases can also be used instead of the resource names to filter the nested tables.
Expand Down

0 comments on commit b9004ba

Please sign in to comment.