graphql-engine/server/src-lib/Hasura/NativeQuery/Metadata.hs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
737 B
Haskell
Raw Normal View History

-- | 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
}