From 49af7dcbc2d47037ca1d69519dd5bc160812d321 Mon Sep 17 00:00:00 2001 From: Steve Phillips Date: Mon, 29 May 2017 08:17:21 -0700 Subject: [PATCH] api.rst: Added example alluded to in docs (#77) --- api.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api.rst b/api.rst index ed30a7239..461afae7a 100644 --- a/api.rst +++ b/api.rst @@ -335,7 +335,11 @@ Which would return } ] -PostgREST can also detect relations going through join tables. Thus you can request the Actors for Films (which in this case finds the information through Roles). You can also reverse the direction of inclusion, asking for all Directors with each including the list of their Films. +PostgREST can also detect relations going through join tables. Thus you can request the Actors for Films (which in this case finds the information through Roles). You can also reverse the direction of inclusion, asking for all Directors with each including the list of their Films: + +.. code-block:: http + + GET /directors?select=films{title,year} HTTP/1.1 .. note::