graphql-engine/server/src-lib/Hasura/GraphQL/Schema/RemoteRelationship.hs-boot
Vamshi Surabhi cca3831180 simplified schema cache representation of remote relationships
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
2021-12-21 23:15:50 +00:00

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)])