mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-17 12:31:52 +03:00
### 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 |
||
---|---|---|
.. | ||
DDL | ||
DML | ||
IR | ||
Types | ||
IR.hs | ||
Types.hs |