graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.NativeQuery.API

Description

Define and handle v1/metadata API operations to track, untrack, and get native queries.

Synopsis

Documentation

data GetNativeQuery (b :: BackendType) Source #

API payload for the get_native_query endpoint.

Constructors

GetNativeQuery 

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'.

execUntrackNativeQuery :: forall b m. (BackendMetadata b, MonadError QErr m) => UntrackNativeQuery b -> Metadata -> m (MetadataObjId, MetadataModifier) Source #

Handler for the untrack_native_query endpoint.