graphql-engine/server/src-lib/Hasura/Backends/DataConnector
Antoine Leblanc 666f4cacb7 Only require MkRootFieldName in top-level functions (that make root fields)
### Description

By definition, root fields are at the root of the schema: only functions that craft root fields need to know about how to customize the name of root fields. However, the presence of `Has MkRootFieldName` in `MonadBuildSchemaBase` meant that the entirety of the schema building code was implicitly aware of / capable of altering root field names.

This PR removes this constraint, and moves it to the functions that do craft root fields. This has several upsides:
- it makes it more explicit where root fields are being crafted
- it prevents functions that should not use this from mistakenly applying it to non-root fields
- it simplifies the shared schema context

### Future work

- can we maybe pass this as an argument, instead of making it a required part of the context?
- ~~AFAICT, we only ever use `mempty` for it: is this actually dead code that we should actually just remove altogether?~~

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5235
GitOrigin-RevId: 4268751f3ab87ae8e03b6fe9e1efa1b096200027
2022-08-03 19:09:50 +00:00
..
Adapter Only require MkRootFieldName in top-level functions (that make root fields) 2022-08-03 19:09:50 +00:00
Agent Increase timeout for DC Agents 2022-07-27 07:19:44 +00:00
IR server: Remove multiple column count aggregate support from Data Connectors [GDW-207] 2022-07-28 07:25:23 +00:00
Schema Rename Data Wrapper to Data Connector [GDW-89] 2022-05-02 05:04:07 +00:00
Logging.hs Add Data Connector agent request logging, improve error messages, and add tracing support [GDW-83] 2022-07-11 08:05:40 +00:00
Plan.hs server: Aggregates support for Data Connectors [GDW-187] 2022-07-28 05:40:53 +00:00