graphql-engine/server/src-lib/Hasura/RQL/IR
Antoine Leblanc b9ee669ee1 Improve remote joins collect
### Description

This PR improves the `Collect` module by re-ordering the functions to make clear what is public API and what is internal implementation. Furthermore, it makes use of `traverseOf` and `traverseFields` to reduce duplication. To do so, it also introduces a few more lenses in the rest of the codebase, and uses this opportunity to harmonize some structures that were not following our naming convention.

While the diff is massive, a lot of it is just code moving around; the file is now divided into separate sections:
- entry points: IR types for which we want to run the collection
- internal monadic structure
- internal traversals: functions that do nothing but drill down further
- actual transformations: the three cases where we do actually have work to do: selection sets on which we do want to insert join columns, extract remote relationships... those functions are left unchanged by this PR
- internal helpers

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3863
GitOrigin-RevId: f7cbecfae9eed9737b62acfa5848bfcf9d4651f6
2022-03-10 06:18:48 +00:00
..
Action.hs Traverse variables in action remote joins 2022-03-08 08:23:20 +00:00
BoolExp.hs server: cleanup references to "pgCol" in common and non-postgres backend code 2022-01-19 08:38:48 +00:00
Conflict.hs server: Improve code readability around OnConflict clauses 2021-12-20 11:16:46 +00:00
Delete.hs Improve remote joins collect 2022-03-10 06:18:48 +00:00
Insert.hs Improve remote joins collect 2022-03-10 06:18:48 +00:00
OrderBy.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
RemoteSchema.hs Improve remote joins collect 2022-03-10 06:18:48 +00:00
Returning.hs Improve remote joins collect 2022-03-10 06:18:48 +00:00
Root.hs Enable remote joins from remote schemas in the execution engine. 2022-03-09 03:18:22 +00:00
Select.hs Improve remote joins collect 2022-03-10 06:18:48 +00:00
Update.hs Improve remote joins collect 2022-03-10 06:18:48 +00:00