Enable embedding through multiple layers of views recursively (#1625)
* Include hidden views from the search path. Hidden views are views in unexposed schemas that are part of a view dependency chain. * Change allSourceColumns to only return pk and fk columns
This commit is contained in:
@@ -421,6 +421,9 @@ spec actualPgVersion = do
|
||||
[json|[ { "title": "To Kill a Mockingbird", "author": { "name": "Harper Lee" } } ]|]
|
||||
{ matchHeaders = [matchContentTypeJson] }
|
||||
|
||||
it "can detect fk relations through multiple views recursively when all views are in api schema" $ do
|
||||
get "/consumers_view_view?select=*,orders_view(*)" `shouldRespondWith` 200
|
||||
|
||||
it "works with views that have subselects" $
|
||||
get "/authors_books_number?select=*,books(title)&id=eq.1" `shouldRespondWith`
|
||||
[json|[ {"id":1, "name":"George Orwell","num_in_forties":1,"num_in_fifties":0,"num_in_sixties":0,"num_in_all_decades":1,
|
||||
|
||||
Reference in New Issue
Block a user