graphql-engine/server/src-lib/Hasura/RQL
Antoine Leblanc 661a1b6560 Remove source cache requirement in action schema
### Description

This PR removes the need for the `SourceCache` when building the schema for the actions. To do so, it changes the way we represent custom types in the source cache. Instead of trying to reuse the same `ObjectTypeDefinition` and `TypeRelationship`. we now have separate `AnnotatedObjectType` and `AnnotatedRelationship`. When building them, at schema cache building time, we persist all the relevant source information, so that it's all available at schema building time.

This PR makes no attempt at re-using `RemoteRelationship` primitives, to avoid having to change the way async action queries are executed, and to avoid having to make complicated changes to how we parse and represent those relationships.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4813
GitOrigin-RevId: 3cc65c5a043c8d3da5f7214eed40c558c4349327
2022-06-23 10:52:32 +00:00
..
DDL Remove source cache requirement in action schema 2022-06-23 10:52:32 +00:00
DML Make on_conflict schema available abstract of update permissions 2022-06-07 23:25:48 +00:00
IR Remove source cache requirement in action schema 2022-06-23 10:52:32 +00:00
Types Remove source cache requirement in action schema 2022-06-23 10:52:32 +00:00
IR.hs Move Hasura.GraphQL.Parser.Column to .RQL.IR. and .GraphQL.Schema. 2022-05-30 22:07:57 +00:00