mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 04:51:35 +03:00
cca3831180
This PR pretty much does the same thing to remote relationship types in schemacache as what #2979 did to remote relationship types in the IR. On main remote relationships are represented by types of form `T from to`. This PR changes it to `T from` which makes it a lot more reusable. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3037 GitOrigin-RevId: 90a5c9e2346c8dc2da6ec5b8c970d6c863d2afb8
17 lines
460 B
Haskell
17 lines
460 B
Haskell
module Hasura.GraphQL.Schema.RemoteRelationship
|
|
( remoteRelationshipField,
|
|
)
|
|
where
|
|
|
|
import Hasura.GraphQL.Parser
|
|
import Hasura.GraphQL.Schema.Common
|
|
import Hasura.Prelude
|
|
import Hasura.RQL.IR.Root qualified as IR
|
|
import Hasura.RQL.Types.Relationships.Remote
|
|
|
|
remoteRelationshipField ::
|
|
forall r m n lhsJoinField.
|
|
(MonadBuildSchemaBase r m n) =>
|
|
RemoteFieldInfo lhsJoinField ->
|
|
m (Maybe [FieldParser n (IR.RemoteRelationshipField UnpreparedValue)])
|