docs: add missing "curl --get" on embedding example

This commit is contained in:
Laurence Isla
2024-07-02 15:20:54 -05:00
parent 2fd5a00269
commit b9004baa3f
+6 -1
View File
@@ -927,7 +927,12 @@ Filters can also be applied on nested embedded resources:
.. code-block:: bash .. 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. 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.