graphql-engine/server/src-lib/Hasura/NativeQuery/IR.hs
Philip Lykke Carlsen cd5186be90 Implement Schema Parsers for Native Query Interface
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7574
GitOrigin-RevId: 0cb4638a7dd79abf6ccb05092c0c663c84675bbd
2023-01-19 11:27:24 +00:00

23 lines
761 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)
}
deriving (Eq, Functor, Foldable, Traversable, Show)