Fixes #1239, support resource embedding on materialized views

This commit is contained in:
Vitor Baptista
2019-03-14 16:59:55 -05:00
committed by Steve Chávez
parent 1f513f24a5
commit 9387e70b66
3 changed files with 5 additions and 1 deletions
+3
View File
@@ -333,6 +333,9 @@ spec = do
it "can detect fk relations through views to tables in the public schema" $
get "/consumers_view?select=*,orders_view(*)" `shouldRespondWith` 200
it "can detect fk relations through materialized views to tables in the public schema" $
get "/materialized_projects?select=*,users(*)" `shouldRespondWith` 200
it "can request parent without specifying primary key" $
get "/articleStars?select=createdAt,article(owner),user(name)&limit=1" `shouldRespondWith`
[json|[{"createdAt":"2015-12-08T04:22:57.472738","article":{"owner": "postgrest_test_authenticator"},"user":{"name": "Angela Martin"}}]|]