mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-17 20:41:49 +03:00
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
|
||
|
}
|