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

Hasura.StoredProcedure.API

Description

Define and handle v1/metadata API operations to track, untrack, and get stored procedures.

Synopsis

Documentation

runGetStoredProcedure :: forall b m. (BackendMetadata b, MetadataM m) => GetStoredProcedure b -> m EncJSON Source #

Handler for the get_stored_procedure endpoint.

runTrackStoredProcedure :: forall b m. (BackendMetadata b, MonadError QErr m, CacheRWM m, MetadataM m) => TrackStoredProcedure b -> m EncJSON Source #

Handler for the track_stored_procedure endpoint. The type 'TrackStoredProcedure b' (appearing here in wrapped as 'BackendTrackStoredProcedure b' for AnyBackend compatibility) is defined in 'class StoredProcedureMetadata'.

runUntrackStoredProcedure :: forall b m. (BackendMetadata b, MonadError QErr m, CacheRWM m, MetadataM m) => UntrackStoredProcedure b -> m EncJSON Source #

Handler for the untrack_stored_procedure endpoint.