graphql-engine/server/src-lib/Hasura/GraphQL/Schema
Antoine Leblanc e3c2bf53a5 Move, document, and prune action types and custom types types.
### Description

This PR is a first step in a series of cleanups of action relationships. This first step does not contain any behavioral change, and it simply reorganizes / prunes / rearranges / documents the code. Mainly:
- it divides some files in RQL.Types between metadata types, schema cache types, execution types;
- it renames some types for consistency;
- it minimizes exports and prunes unnecessary types;
- it moves some types in places where they make more sense;
- it replaces uses of `DMap BackendTag` with `BackendMap`.

Most of the "movement" within files re-organizes declarations in a "top-down" fashion, by moving all TH splices to the end of the file, which avoids order or declarations mattering.

### Optional list types

One main type change this PR makes is a replacement of variant list types in `CustomTypes.hs`; we had `Maybe [a]`, or sometimes `Maybe (NonEmpty a)`. This PR harmonizes all of them to `[a]`, as most of the code would use them as such, by doing `fromMaybe []` or `maybe [] toList`.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4613
GitOrigin-RevId: bc624e10df587eba862ff27a5e8021b32d0d78a2
2022-06-07 15:45:00 +00:00
..
Action.hs Move, document, and prune action types and custom types types. 2022-06-07 15:45:00 +00:00
Backend.hs Clean Relay's code, break schema cycles, introduce Node ID V2 2022-06-07 13:36:29 +00:00
BoolExp.hs Move Hasura.GraphQL.Parser.Column to .RQL.IR. and .GraphQL.Schema. 2022-05-30 22:07:57 +00:00
Build.hs server: disable query/subscription root fields 2022-06-07 05:33:12 +00:00
Common.hs Clean Relay's code, break schema cycles, introduce Node ID V2 2022-06-07 13:36:29 +00:00
Instances.hs Rename Data Wrapper to Data Connector [GDW-89] 2022-05-02 05:04:07 +00:00
Introspect.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
Mutation.hs server: extend backend_only setting for update and delete permissions 2022-05-31 14:42:14 +00:00
Node.hs Clean Relay's code, break schema cycles, introduce Node ID V2 2022-06-07 13:36:29 +00:00
OrderBy.hs Move Hasura.GraphQL.Parser.Column to .RQL.IR. and .GraphQL.Schema. 2022-05-30 22:07:57 +00:00
Postgres.hs Move, document, and prune action types and custom types types. 2022-06-07 15:45:00 +00:00
Relay.hs Clean Relay's code, break schema cycles, introduce Node ID V2 2022-06-07 13:36:29 +00:00
Remote.hs Move Hasura.GraphQL.Parser.Column to .RQL.IR. and .GraphQL.Schema. 2022-05-30 22:07:57 +00:00
RemoteRelationship.hs Clean Relay's code, break schema cycles, introduce Node ID V2 2022-06-07 13:36:29 +00:00
Select.hs Clean Relay's code, break schema cycles, introduce Node ID V2 2022-06-07 13:36:29 +00:00
SubscriptionStream.hs Move Hasura.GraphQL.Parser.Column to .RQL.IR. and .GraphQL.Schema. 2022-05-30 22:07:57 +00:00
Table.hs server: rename spiScalarComputedFields to spiComputedFields 2022-06-06 07:24:03 +00:00
Update.hs server: extend backend_only setting for update and delete permissions 2022-05-31 14:42:14 +00:00