Auke Booij
|
cda117a4a9
|
Add unless /when related hints
Example:
```
server/src-lib/Hasura/RQL/DDL/Schema/Table.hs:(200,15)-(205,28): Warning: Use when
Found:
if tnGQL `elem` ns then
throw400 RemoteSchemaConflicts
$ "node " <> tnGQL <> " already exists in current graphql schema"
else
pure ()
Perhaps:
when
(tnGQL `elem` ns)
(throw400 RemoteSchemaConflicts
$ "node " <> tnGQL <> " already exists in current graphql schema")
```
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4570
GitOrigin-RevId: 1b04e5e39d20c99643220154c03dae82a025f0f1
|
2022-05-27 13:34:42 +00:00 |
|