graphql-engine/server/src-lib/Hasura/GraphQL/Execute/Action.hs-boot
Antoine Leblanc 1ca4034697 server: generalize execution of queries and mutations
GitOrigin-RevId: aff477a0849d4667f2f6dc6804d6ca2982e53f95
2021-02-12 03:05:05 +00:00

25 lines
687 B
Haskell

module Hasura.GraphQL.Execute.Action where
import Hasura.Prelude
import Control.Monad.Trans.Control (MonadBaseControl)
import qualified Hasura.Tracing as Tracing
import Hasura.EncJSON
import Hasura.RQL.Types.Error
import Hasura.RQL.Types.Action
newtype ActionExecution =
ActionExecution {
unActionExecution
:: forall m
. (MonadIO m, MonadBaseControl IO m, MonadError QErr m, Tracing.MonadTrace m) => m EncJSON
}
data ActionExecutionPlan
= AEPSync !ActionExecution
| AEPAsyncQuery !ActionId !(ActionLogResponse -> ActionExecution)
| AEPAsyncMutation !EncJSON