correct bad null filter restriction

When embedding using the column name.

Also make related order similarly strict to avoid the same kind of issues.
This commit is contained in:
steve-chavez
2022-12-15 18:02:25 -05:00
committed by Steve Chavez
parent d93bb95d83
commit 566c6fe53f
2 changed files with 12 additions and 2 deletions
@@ -244,3 +244,13 @@ spec = describe "related queries" $ do
{ matchStatus = 400
, matchHeaders = [matchContentTypeJson]
}
it "doesn't interfere filtering when embedding using the column name" $
get "/projects?select=name,client_id,client:client_id(name)&client_id=eq.2" `shouldRespondWith`
[json|[
{"name":"IOS","client_id":2,"client":{"name":"Apple"}},
{"name":"OSX","client_id":2,"client":{"name":"Apple"}}
]|]
{ matchStatus = 200
, matchHeaders = [matchContentTypeJson]
}