graphql-engine/server/src-lib/Hasura/GraphQL/Schema
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
..
Action.hs server: refactor MonadSchema into MonadMemoize 2022-08-04 13:45:53 +00:00
Backend.hs Run the reader context per schema block 2022-08-08 13:05:51 +00:00
BoolExp.hs server: refactor MonadSchema into MonadMemoize 2022-08-04 13:45:53 +00:00
Build.hs Only require MkRootFieldName in top-level functions (that make root fields) 2022-08-03 19:09:50 +00:00
Common.hs Run the reader context per schema block 2022-08-08 13:05:51 +00:00
Instances.hs Rename Data Wrapper to Data Connector [GDW-89] 2022-05-02 05:04:07 +00:00
Introspect.hs server: Remove QErr and Code dependencies from the schema parsers. 2022-07-27 12:26:44 +00:00
Mutation.hs server: refactor MonadSchema into MonadMemoize 2022-08-04 13:45:53 +00:00
NamingCase.hs server: transform enum with upper for graphql-default 2022-07-19 06:56:45 +00:00
Node.hs remove homebrew NESeq, use vendored 2022-07-19 08:42:28 +00:00
Options.hs Remove remote schema permissions from schema options. 2022-07-18 13:09:40 +00:00
OrderBy.hs server: refactor MonadSchema into MonadMemoize 2022-08-04 13:45:53 +00:00
Parser.hs server: refactor MonadSchema into MonadMemoize 2022-08-04 13:45:53 +00:00
Postgres.hs server: Metadata origin for definitions (type parameter version v2) 2022-06-28 15:53:44 +00:00
Relay.hs Move RoleName into SchemaContext. 2022-07-29 15:38:44 +00:00
Remote.hs Run the reader context per schema block 2022-08-08 13:05:51 +00:00
RemoteRelationship.hs server: refactor MonadSchema into MonadMemoize 2022-08-04 13:45:53 +00:00
Select.hs server: refactor MonadSchema into MonadMemoize 2022-08-04 13:45:53 +00:00
SubscriptionStream.hs server: refactor MonadSchema into MonadMemoize 2022-08-04 13:45:53 +00:00
Table.hs Move RoleName into SchemaContext. 2022-07-29 15:38:44 +00:00
Typename.hs Move MkTypename and NamingCase into their own modules. 2022-07-12 14:01:28 +00:00
Update.hs server: refactor MonadSchema into MonadMemoize 2022-08-04 13:45:53 +00:00