mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
2b1fe6fdf9
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9142 GitOrigin-RevId: 00e29847cd1e8c0562ac7d862bbc072389d40e3a
26 lines
807 B
Haskell
26 lines
807 B
Haskell
-- | The RQL IR representation of an invocation of a native query.
|
|
module Hasura.NativeQuery.IR
|
|
( NativeQuery (..),
|
|
)
|
|
where
|
|
|
|
import Hasura.LogicalModel.IR
|
|
import Hasura.NativeQuery.Metadata
|
|
import Hasura.Prelude
|
|
import Hasura.RQL.Types.Backend
|
|
|
|
-- | The RQL IR representation of an invocation of a native query.
|
|
data NativeQuery b field = NativeQuery
|
|
{ -- | The graphql name of the native query.
|
|
nqRootFieldName :: NativeQueryName,
|
|
-- | The raw sql to use in the query
|
|
nqInterpolatedQuery :: InterpolatedQuery field,
|
|
-- | The return type of the native query
|
|
nqLogicalModel :: LogicalModel b
|
|
}
|
|
deriving (Functor, Foldable, Traversable)
|
|
|
|
deriving instance (Backend b, Eq field) => Eq (NativeQuery b field)
|
|
|
|
deriving instance (Backend b, Show field) => Show (NativeQuery b field)
|