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:
committed by
Steve Chavez
parent
d93bb95d83
commit
566c6fe53f
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user