graphql-engine/server/src-lib/Hasura/RQL
Antoine Leblanc 376c7d48f1 Add remote relationships from remote schemas in schema parser generators
### Description

This PR extends the `RemoteSchema` parsers to also include remote relationships. This include a significant refactoring of the top level schema building blocks, since remote schemas can no longer be built in isolation: they have to be built within the same run of `MonadSchema` as the sources. It is originally taken from the changes in #3069 and was slightly adapted.

I highly recommend turning OFF whitespace in the Github UI for `Schema.hs`, since I've adjusted the indentation of two large functions.

### Warning

Given the lack of a feature flag, this PR technically **enables the feature**. While the metadata API is not plugged in, a savvy user could use `replace_metadata` to set a metadata that contains remote joins from remote schemas, and they would be enabled. Is this acceptable?

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3811
GitOrigin-RevId: a5b00f865cdb8890b0fc02b139c2ebd48929f138
2022-03-14 16:22:50 +00:00
..
DDL Use an enum for EndpointMethod and fix incorrect response aggregation. 2022-03-13 07:41:02 +00:00
DML server: remove redundant LANGUAGE pragmas 2022-02-25 12:40:00 +00:00
IR Document ActionFieldsG 2022-03-12 01:38:19 +00:00
Types Add remote relationships from remote schemas in schema parser generators 2022-03-14 16:22:50 +00:00
IR.hs Nested action joins 2022-03-03 03:44:20 +00:00
Types.hs Use an enum for EndpointMethod and fix incorrect response aggregation. 2022-03-13 07:41:02 +00:00