Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Define and handle v1/metadata API operations to track, untrack, and get native queries.
Synopsis
- data TrackNativeQuery (b :: BackendType) = TrackNativeQuery {
- tnqSource :: SourceName
- tnqRootFieldName :: NativeQueryName
- tnqCode :: Text
- tnqArguments :: HashMap ArgumentName (NullableScalarType b)
- tnqArrayRelationships :: InsOrdHashMap RelName (RelDef (RelManualNativeQueryConfig b))
- tnqObjectRelationships :: InsOrdHashMap RelName (RelDef (RelManualNativeQueryConfig b))
- tnqDescription :: Maybe Text
- tnqReturns :: LogicalModelIdentifier b
- data GetNativeQuery (b :: BackendType) = GetNativeQuery {}
- runGetNativeQuery :: forall b m. (BackendMetadata b, MetadataM m, MonadError QErr m) => GetNativeQuery b -> m EncJSON
- execTrackNativeQuery :: forall b m. (BackendMetadata b, MonadError QErr m) => TrackNativeQuery b -> Metadata -> m (MetadataObjId, MetadataModifier)
- data UntrackNativeQuery (b :: BackendType) = UntrackNativeQuery {}
- execUntrackNativeQuery :: forall b m. (BackendMetadata b, MonadError QErr m) => UntrackNativeQuery b -> Metadata -> m (MetadataObjId, MetadataModifier)
- dropNativeQueryInMetadata :: forall b. BackendMetadata b => SourceName -> NativeQueryName -> MetadataModifier
Documentation
data TrackNativeQuery (b :: BackendType) Source #
Default implementation of the track_native_query
request payload.
Instances
Backend b => FromJSON (TrackNativeQuery b) Source # | |
Defined in Hasura.NativeQuery.API parseJSON :: Value -> Parser (TrackNativeQuery b) Source # parseJSONList :: Value -> Parser [TrackNativeQuery b] Source # | |
Backend b => ToJSON (TrackNativeQuery b) Source # | |
Defined in Hasura.NativeQuery.API toJSON :: TrackNativeQuery b -> Value Source # toEncoding :: TrackNativeQuery b -> Encoding Source # toJSONList :: [TrackNativeQuery b] -> Value Source # toEncodingList :: [TrackNativeQuery b] -> Encoding Source # | |
Backend b => HasCodec (TrackNativeQuery b) Source # | |
Defined in Hasura.NativeQuery.API |
data GetNativeQuery (b :: BackendType) Source #
API payload for the get_native_query
endpoint.
Instances
Backend b => FromJSON (GetNativeQuery b) Source # | |
Defined in Hasura.NativeQuery.API parseJSON :: Value -> Parser (GetNativeQuery b) Source # parseJSONList :: Value -> Parser [GetNativeQuery b] Source # | |
Backend b => ToJSON (GetNativeQuery b) Source # | |
Defined in Hasura.NativeQuery.API toJSON :: GetNativeQuery b -> Value Source # toEncoding :: GetNativeQuery b -> Encoding Source # toJSONList :: [GetNativeQuery b] -> Value Source # toEncodingList :: [GetNativeQuery b] -> Encoding Source # | |
Backend b => Show (GetNativeQuery b) Source # | |
Defined in Hasura.NativeQuery.API showsPrec :: Int -> GetNativeQuery b -> ShowS # show :: GetNativeQuery b -> String # showList :: [GetNativeQuery b] -> ShowS # | |
Backend b => Eq (GetNativeQuery b) Source # | |
Defined in Hasura.NativeQuery.API (==) :: GetNativeQuery b -> GetNativeQuery b -> Bool # (/=) :: GetNativeQuery b -> GetNativeQuery b -> Bool # |
runGetNativeQuery :: forall b m. (BackendMetadata b, MetadataM m, MonadError QErr m) => GetNativeQuery b -> m EncJSON Source #
Handler for the get_native_query
endpoint.
execTrackNativeQuery :: forall b m. (BackendMetadata b, MonadError QErr m) => TrackNativeQuery b -> Metadata -> m (MetadataObjId, MetadataModifier) Source #
Handler for the track_native_query
endpoint. The type 'TrackNativeQuery b'
(appearing here in wrapped as 'BackendTrackNativeQuery b' for AnyBackend
compatibility) is defined in 'class NativeQueryMetadata'.
data UntrackNativeQuery (b :: BackendType) Source #
API payload for the untrack_native_query
endpoint.
Instances
FromJSON (UntrackNativeQuery b) Source # | |
Defined in Hasura.NativeQuery.API parseJSON :: Value -> Parser (UntrackNativeQuery b) Source # parseJSONList :: Value -> Parser [UntrackNativeQuery b] Source # | |
ToJSON (UntrackNativeQuery b) Source # | |
Defined in Hasura.NativeQuery.API toJSON :: UntrackNativeQuery b -> Value Source # toEncoding :: UntrackNativeQuery b -> Encoding Source # toJSONList :: [UntrackNativeQuery b] -> Value Source # toEncodingList :: [UntrackNativeQuery b] -> Encoding Source # | |
Show (UntrackNativeQuery b) Source # | |
Defined in Hasura.NativeQuery.API showsPrec :: Int -> UntrackNativeQuery b -> ShowS # show :: UntrackNativeQuery b -> String # showList :: [UntrackNativeQuery b] -> ShowS # | |
Eq (UntrackNativeQuery b) Source # | |
Defined in Hasura.NativeQuery.API (==) :: UntrackNativeQuery b -> UntrackNativeQuery b -> Bool # (/=) :: UntrackNativeQuery b -> UntrackNativeQuery b -> Bool # |
execUntrackNativeQuery :: forall b m. (BackendMetadata b, MonadError QErr m) => UntrackNativeQuery b -> Metadata -> m (MetadataObjId, MetadataModifier) Source #
Handler for the untrack_native_query
endpoint.
dropNativeQueryInMetadata :: forall b. BackendMetadata b => SourceName -> NativeQueryName -> MetadataModifier Source #