mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
This commit is contained in:
parent
277be9074e
commit
70f4db19ad
@ -324,8 +324,7 @@ getRequiredFkey col fkeySet preCondition =
|
||||
"more than one foreign key constraint exists on the given column"
|
||||
where
|
||||
filterFkeys = HS.toList $ HS.filter filterFn fkeySet
|
||||
filterFn k =
|
||||
preCondition k && isJust (HM.lookup col $ _cfkColumnMapping k)
|
||||
filterFn k = preCondition k && HM.keys (_cfkColumnMapping k) == [col]
|
||||
|
||||
fetchTableFkeys :: QualifiedTable -> Q.TxE QErr (HS.HashSet CatalogFKey)
|
||||
fetchTableFkeys qt@(QualifiedObject sn tn) = do
|
||||
|
Loading…
Reference in New Issue
Block a user