Skip to content

Instantly share code, notes, and snippets.

@prestonmcgowan
Created July 17, 2019 16:33
Show Gist options
  • Save prestonmcgowan/bb728054f5c287629225db3f401b9787 to your computer and use it in GitHub Desktop.
Save prestonmcgowan/bb728054f5c287629225db3f401b9787 to your computer and use it in GitHub Desktop.
// Use VSCode with mlxprs or MarkLogic Query Console
let tdeDirectory = cts.uriMatch("/tde/*.tdex").toArray();
tdeDirectory.map( u => {
let tdex = cts.doc(u);
return { u, valid: tde.validate([tdex]) };
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment