mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-25 16:36:31 +03:00
98ccd81704
GITHUB_PR_NUMBER: 6125 GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6125 Co-authored-by: Karthikeyan Chinnakonda <15602904+codingkarthik@users.noreply.github.com> GitOrigin-RevId: 53d0671e6335dad1af7cb00e3e05e7021a910673
27 lines
1.1 KiB
Haskell
27 lines
1.1 KiB
Haskell
module Hasura.RQL.IR.RemoteJoin
|
|
( RemoteJoin(..)
|
|
) where
|
|
|
|
import Hasura.Prelude
|
|
|
|
import qualified Language.GraphQL.Draft.Syntax as G
|
|
|
|
import Hasura.RQL.IR.Select
|
|
import Hasura.RQL.Types
|
|
|
|
|
|
-- | A 'RemoteJoin' represents the context of remote relationship to be extracted from 'AnnFieldG's.
|
|
data RemoteJoin (b :: BackendType)
|
|
= RemoteJoin
|
|
{ _rjName :: !FieldName -- ^ The remote join field name.
|
|
, _rjArgs :: ![RemoteFieldArgument] -- ^ User-provided arguments with variables.
|
|
, _rjSelSet :: !(G.SelectionSet G.NoFragments RemoteSchemaVariable) -- ^ User-provided selection set of remote field.
|
|
, _rjHasuraFields :: !(HashSet FieldName) -- ^ Table fields.
|
|
, _rjFieldCall :: !(NonEmpty FieldCall) -- ^ Remote server fields.
|
|
, _rjRemoteSchema :: !RemoteSchemaInfo -- ^ The remote schema server info.
|
|
, _rjPhantomFields :: ![ColumnInfo b]
|
|
-- ^ Hasura fields which are not in the selection set, but are required as
|
|
-- parameters to satisfy the remote join.
|
|
}
|
|
deriving instance Eq (RemoteJoin 'Postgres)
|