mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-17 12:31:52 +03:00
cd5186be90
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7574 GitOrigin-RevId: 0cb4638a7dd79abf6ccb05092c0c663c84675bbd
24 lines
737 B
Haskell
24 lines
737 B
Haskell
-- | This module houses the types and functions associated with the default
|
|
-- implementation of the metadata of native queries.
|
|
module Hasura.NativeQuery.Metadata
|
|
( NativeQueryArgumentName (..),
|
|
NativeQueryInfoImpl (..),
|
|
)
|
|
where
|
|
|
|
import Hasura.NativeQuery.Types
|
|
import Hasura.Prelude
|
|
import Hasura.RQL.Types.Backend
|
|
|
|
newtype NativeQueryArgumentName = NativeQueryArgumentName {getNativeQueryArgumentName :: Text}
|
|
deriving (Eq, Ord, Hashable, Show)
|
|
|
|
-- | Provisional data type for modelling metadata
|
|
data NativeQueryInfoImpl b = NativeQueryInfoImpl
|
|
{ nqiiName :: NativeQueryName,
|
|
nqiiCode :: Text,
|
|
nqiiReturns :: TableName b,
|
|
nqiiArgs :: HashMap NativeQueryArgumentName (ScalarType b),
|
|
nqiiComment :: Text
|
|
}
|