Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created October 27, 2016 20:13
Show Gist options
  • Save ableasdale/52863742ba0014e588e15358e3fedb2c to your computer and use it in GitHub Desktop.
Save ableasdale/52863742ba0014e588e15358e3fedb2c to your computer and use it in GitHub Desktop.
MarkLogic: Using admin:forest-get-updates-allowed
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy";
declare variable $CONFIG := admin:get-configuration();
admin:forest-get-updates-allowed($CONFIG, admin:forest-get-id($CONFIG, "Documents"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment