Last active
April 25, 2018 06:14
-
-
Save nishantsingh1/8b308c5bfbe0f51d238ad5bf4817ba43 to your computer and use it in GitHub Desktop.
Trigger definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "1.0-ml"; | |
import module namespace trgr="http://marklogic.com/xdmp/triggers" | |
at "/MarkLogic/triggers.xqy"; | |
trgr:create-trigger("minitrigger", "Mini trigger example", | |
trgr:trigger-data-event( | |
trgr:directory-scope("/mini/", "1"), | |
trgr:document-content("create"), | |
trgr:post-commit()), | |
trgr:trigger-module(xdmp:database("minimodule"), "/", "/action/trg-mini-create-action.xqy"), fn:true(), xdmp:default-permissions() ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment