graphql-engine/server/src-lib
Antoine Leblanc cdf5e3b5f0 Specialize RQL.DML to postgres.
### Description

When generalizing the code, back in late 2020, we over-eagerly generalized parts of the code that are specific to RQL's DML. This was in part due to the fact that, at the time, the DML types were all mixed alongside other types in `RQL.Types`. As a result, a lot of `RQL.DML.Internal` was generic over the backend type, instead of being specialized to `'Postgres 'Vanilla`.

A consequence of this is that, before this PR, `DML.Internal` ended up having a dependency on non-Postgres backends, due to the use of `annBoolExp`, which requires a `BackendMetadata` instance. Since the code was written in a generic manner, `DML.Internal` in turn depended on having the metadata instances in scope... This PR changes that to, instead, explicitly import the Postgres instance.

(Note that this module didn't import `RQL.Types.Metadata.Instances`, but depends on a module that imports it, and **orphan instances are transitively imported**, as evidenced by the need for that explicit import in #4568.)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4573
GitOrigin-RevId: 7b82b5d7c23c03654518a1816802d400f37c3c64
2022-05-27 18:23:19 +00:00
..
Control server: simplify interpretation of concrete monads into abstract arrows 2022-04-04 12:36:35 +00:00
Data server: naming conventions for auto generated fields 2022-05-26 11:55:29 +00:00
Database/MSSQL (Fix #8267) Handle subscriptions in MSSQL when results exceed 2048 characters 2022-03-21 12:16:14 +00:00
GHC server: naming conventions for auto generated fields 2022-05-26 11:55:29 +00:00
Hasura Specialize RQL.DML to postgres. 2022-05-27 18:23:19 +00:00
Network Yeet some default-extensions 2022-03-16 00:40:17 +00:00