graphql-engine/server/src-lib/Hasura/RQL/DDL
Auke Booij 9bb6575d60 Metadata code cleanups
There are three minor cleanups here:

- The first argument to the `setMetadataInCatalog` method is always `Just`. It is thus important to avoid `Maybe`, because this means that a crucial piece of code (saving metadata) is completely untested.
- Rather than spelling them out, we can derive the `Semigroup`/`Monoid` instances for `MetadataModifier` through the `Endo` type.
- I've renamed the name of the getter of the `MetadataModifier` newtype to **r**unMetadataModifier. Using record puns, this allows us to write:

```diff
-  putMetadata $ unMetadataModifier metadataModifier metadata
+  putMetadata $ runMetadataModifier metadata
```
which is nicer to read.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3703
GitOrigin-RevId: fd36b3c5202017f5afc943c01dfdd7c82c099bdd
2022-02-18 12:47:56 +00:00
..
Metadata Feature/webhook response transforms 2022-01-19 04:47:36 +00:00
Permission Replace "identity column" with "column mutability" data for all backends 2022-02-03 14:15:35 +00:00
Relationship server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
RemoteRelationship Fix remote relationship invalid type name issue (fix hasura/graphql-engine#8002) 2022-01-27 14:34:01 +00:00
RemoteSchema Changed RemoteSchemaIntrospection's internal representation from a list to a hashmap. 2021-11-30 14:47:50 +00:00
Schema Metadata code cleanups 2022-02-18 12:47:56 +00:00
Action.hs server: Support returning scalar types in actions 2022-02-15 14:40:34 +00:00
ApiLimit.hs server: add explicit export lists in OSS server and enforce with warning 2021-11-04 16:09:38 +00:00
ComputedField.hs Customization of computed field GraphQL schema descriptions 2022-02-15 23:17:27 +00:00
CustomTypes.hs server: add support for nested object type in action 2021-12-15 23:52:43 +00:00
Endpoint.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
EventTrigger.hs Feature/webhook response transforms 2022-01-19 04:47:36 +00:00
GraphqlSchemaIntrospection.hs server: add explicit export lists in OSS server and enforce with warning 2021-11-04 16:09:38 +00:00
Headers.hs server: add explicit export lists in OSS server and enforce with warning 2021-11-04 16:09:38 +00:00
InheritedRoles.hs server: enable inherited roles by default 2021-10-05 12:29:32 +00:00
Metadata.hs Metadata code cleanups 2022-02-18 12:47:56 +00:00
Network.hs server: add explicit export lists in OSS server and enforce with warning 2021-11-04 16:09:38 +00:00
Permission.hs Replace "identity column" with "column mutability" data for all backends 2022-02-03 14:15:35 +00:00
QueryCollection.hs server, pro: add support for per-role allowlists 2022-02-08 16:54:49 +00:00
QueryTags.hs server: add explicit export lists in OSS server and enforce with warning 2021-11-04 16:09:38 +00:00
Relationship.hs server/mssql: add cascade to mssql_run_sql 2021-10-22 14:50:13 +00:00
RemoteRelationship.hs Build schema cache for relationships from remote schemas 2022-02-03 18:59:32 +00:00
RemoteSchema.hs Build schema cache for relationships from remote schemas 2022-02-03 18:59:32 +00:00
ScheduledTrigger.hs server: add a new metadata API to return all the cron triggers 2022-01-27 06:44:37 +00:00
Schema.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
WebhookTransforms.hs Feature/removable request transform body and modified request transform API 2022-02-17 04:37:18 +00:00