sec.ampExists( namespace as String, local-name as String, document-uri as String, database as (Number|String) ) as Boolean
This function returns true if the specified amp exists in the security database.
This function must be executed against the security database.
const sec = require('/MarkLogic/security.xqy'); sec.ampExists("my/namespace/uri", "my-function", "/my/module.xqy", xdmp.database("my-database"))
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.