graphql-engine/server/src-lib/Hasura/GraphQL
Antoine Leblanc 6c14a018e4 Run the reader context per schema block
### Description

This PR is a first step towards having a dedicated reader context per schema block. It adds the required Reader instance, and switches from a `SchemaT ReaderT` stack to a `ReaderT SchemaT` stack. Furthermore, it cleans up / harmonizes some of the top-level schema building functions.

Sources and remotes are now built each within their own run of `runReaderT`: for now, the reader context is the same in both cases, meaning no special care is required at the boundary of remote relationships.

Actions are explicitly run with the source context for now; we could envision creating a third and distinct context for them.

This PR is expected to be a no-op.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5300
GitOrigin-RevId: a014e5b3504eb4ef740c820d305d6d2695f622f7
2022-08-08 13:05:51 +00:00
..
Execute Use witherable, remove catMaybes/mapMaybe 2022-07-29 14:53:16 +00:00
Schema Run the reader context per schema block 2022-08-08 13:05:51 +00:00
Transport server/pro: log when rate limits and time limits are hit 2022-07-27 06:40:21 +00:00
Analyse.hs Rewrite OpenAPI 2022-06-30 12:57:09 +00:00
ApolloFederation.hs server: support for Apollo federation 2022-07-25 15:54:41 +00:00
Context.hs server: runParse returns QErr 2022-06-16 12:22:30 +00:00
Execute.hs server: Remove QErr and Code dependencies from the schema parsers. 2022-07-27 12:26:44 +00:00
Explain.hs server: support for Apollo federation 2022-07-25 15:54:41 +00:00
Logging.hs Source typename customization (close graphql-engine#6974) 2021-10-29 14:43:14 +00:00
Namespace.hs Move MkTypename and NamingCase into their own modules. 2022-07-12 14:01:28 +00:00
ParameterizedQueryHash.hs Implement HLint suggestions and turn warnings into errors 2022-07-01 10:50:33 +00:00
RemoteServer.hs server: refactor MonadSchema into MonadMemoize 2022-08-04 13:45:53 +00:00
Schema.hs Run the reader context per schema block 2022-08-08 13:05:51 +00:00