Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
getActionInfo :: (QErrM m, CacheRM m) => ActionName -> m ActionInfo Source #
data CreateAction Source #
CreateAction | |
|
Instances
FromJSON CreateAction Source # | |
Defined in Hasura.RQL.DDL.Action parseJSON :: Value -> Parser CreateAction parseJSONList :: Value -> Parser [CreateAction] | |
ToJSON CreateAction Source # | |
Defined in Hasura.RQL.DDL.Action toJSON :: CreateAction -> Value toEncoding :: CreateAction -> Encoding toJSONList :: [CreateAction] -> Value toEncodingList :: [CreateAction] -> Encoding |
caName :: Lens' CreateAction ActionName Source #
caDefinition :: Lens' CreateAction ActionDefinitionInput Source #
caComment :: Lens' CreateAction (Maybe Text) Source #
runCreateAction :: (QErrM m, CacheRWM m, MetadataM m) => CreateAction -> m EncJSON Source #
resolveAction :: QErrM m => Environment -> AnnotatedCustomTypes -> ActionDefinitionInput -> BackendMap ScalarMap -> m (ResolvedActionDefinition, AnnotatedOutputType) Source #
data UpdateAction Source #
UpdateAction | |
|
Instances
FromJSON UpdateAction Source # | |
Defined in Hasura.RQL.DDL.Action parseJSON :: Value -> Parser UpdateAction parseJSONList :: Value -> Parser [UpdateAction] |
uaName :: Lens' UpdateAction ActionName Source #
uaDefinition :: Lens' UpdateAction ActionDefinitionInput Source #
uaComment :: Lens' UpdateAction (Maybe Text) Source #
runUpdateAction :: forall m. (QErrM m, CacheRWM m, MetadataM m) => UpdateAction -> m EncJSON Source #
newtype ClearActionData Source #
data DropAction Source #
Instances
Eq DropAction Source # | |
Defined in Hasura.RQL.DDL.Action (==) :: DropAction -> DropAction -> Bool # (/=) :: DropAction -> DropAction -> Bool # | |
Show DropAction Source # | |
Defined in Hasura.RQL.DDL.Action showsPrec :: Int -> DropAction -> ShowS # show :: DropAction -> String # showList :: [DropAction] -> ShowS # | |
FromJSON DropAction Source # | |
Defined in Hasura.RQL.DDL.Action parseJSON :: Value -> Parser DropAction parseJSONList :: Value -> Parser [DropAction] | |
ToJSON DropAction Source # | |
Defined in Hasura.RQL.DDL.Action toJSON :: DropAction -> Value toEncoding :: DropAction -> Encoding toJSONList :: [DropAction] -> Value toEncodingList :: [DropAction] -> Encoding |
runDropAction :: (CacheRWM m, MetadataM m, MonadMetadataStorageQueryAPI m) => DropAction -> m EncJSON Source #
newtype ActionMetadataField Source #
doesActionPermissionExist :: Metadata -> ActionName -> RoleName -> Bool Source #
data CreateActionPermission Source #
CreateActionPermission | |
|
Instances
FromJSON CreateActionPermission Source # | |
Defined in Hasura.RQL.DDL.Action parseJSON :: Value -> Parser CreateActionPermission parseJSONList :: Value -> Parser [CreateActionPermission] |
runCreateActionPermission :: (QErrM m, CacheRWM m, MetadataM m) => CreateActionPermission -> m EncJSON Source #
data DropActionPermission Source #
Instances
Eq DropActionPermission Source # | |
Defined in Hasura.RQL.DDL.Action (==) :: DropActionPermission -> DropActionPermission -> Bool # (/=) :: DropActionPermission -> DropActionPermission -> Bool # | |
Show DropActionPermission Source # | |
Defined in Hasura.RQL.DDL.Action showsPrec :: Int -> DropActionPermission -> ShowS # show :: DropActionPermission -> String # showList :: [DropActionPermission] -> ShowS # | |
FromJSON DropActionPermission Source # | |
Defined in Hasura.RQL.DDL.Action parseJSON :: Value -> Parser DropActionPermission parseJSONList :: Value -> Parser [DropActionPermission] | |
ToJSON DropActionPermission Source # | |
Defined in Hasura.RQL.DDL.Action toJSON :: DropActionPermission -> Value toEncoding :: DropActionPermission -> Encoding toJSONList :: [DropActionPermission] -> Value toEncodingList :: [DropActionPermission] -> Encoding |
runDropActionPermission :: (QErrM m, CacheRWM m, MetadataM m) => DropActionPermission -> m EncJSON Source #