mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-20 22:11:45 +03:00
4b0c737f0b
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7692 GitOrigin-RevId: c4e8d6ff2defe6c0ecd96a7233636fe0ebae1a85
25 lines
825 B
Haskell
25 lines
825 B
Haskell
-- | This module contains the default types and functions that model Native
|
|
-- Queries.
|
|
module Hasura.NativeQuery.IR
|
|
( NativeQueryImpl (..),
|
|
)
|
|
where
|
|
|
|
import Hasura.NativeQuery.Metadata
|
|
import Hasura.NativeQuery.Types
|
|
import Hasura.Prelude
|
|
import Hasura.RQL.Types.Column (ColumnValue)
|
|
|
|
-- | The default implementation of an invocation of a native query.
|
|
data NativeQueryImpl b field = NativeQueryImpl
|
|
{ -- | The defined name of the native query.
|
|
-- When translating this is used as a key to look up the actual
|
|
-- native query definition.
|
|
nqName :: NativeQueryName,
|
|
-- | The arguments passed to the native query, if any.
|
|
nqArgs :: HashMap NativeQueryArgumentName (ColumnValue b),
|
|
-- | The raw sql to use in the query
|
|
nqRawBody :: Text
|
|
}
|
|
deriving (Eq, Functor, Foldable, Traversable, Show)
|