MarkLogic Server 11.0 Product Documentation
trgr.triggerDisable

trgr.triggerDisable(
   trigger-name as String
) as null

Summary

Disables the named trigger.

Parameters
trigger-name The trigger name.

Usage Notes

This function must be run in the context of the database containing the trigger to be disabled. If no trigger named $trigger-name exists, the exception TRGR-TRIGGERDNE is raised.

Example

// Run in the context of the database containing the trigger.

declareUpdate();
const trgr = require('/MarkLogic/triggers');

trgr.triggerDisable('myTrigger');
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy