Is there any plan to provide runtime debugging support for server-side JavaScript?  Most of the XQuery API has been ported to JavaScript, but the "dbg" module, which gives you an entry point into query execution, has not. As MarkLogic 8 embed...
For Marklogic, it's a NoSQL db and powerful server engine. I use *.xqy file to write code before,but marklogic 8 has an advanced function is that it can write javascript code directly.For more speed to search at database, I want to transplant the...
Due to circumstances beyond my control, Javascript is the only language option available for me. I'm a beginner and am not even sure if I'm approaching the problem in a "recommended" manner.  Simply put, a customer has setup a MarkLog...
I'd like to work with some document properties (which are in xml) as nodes so I can work with child elements. So far I have:  var counts = []; for (var p of xdmp.documentProperties(uris)) {     var isANode = p instanceof Node; // false (actually...
I'm working on a query which will filter documents with nodes that are empty JSON arrays like this (Output property):  {     "Id": "0aec6b50-03ff-48c9-ac35-1b5e7640a892",      "Input": "00000000-0000-0000-0000-00000000...
If I have the following queryBuilder query in the node.js client API:  db.client.documents.query(   q.where(     q.collection('records'),     q.or(         q.value('id', [1,2,3,4])     )   ).slice(0, 50) )   This would give me the fir...
I have a simple query in JavaScript:  cts.search(     cts.elementQuery(xs.QName("headline"), "NYSE") )   And here is one of the files in the database:  <?xml  version="1.0" encoding="UTF-8"?> <ContentEnvelope...
I adapted the code below from some XQuery. However, when I run it, it only inserts the document into collection B, not collections A and B as the equivalent XQuery does.  declareUpdate(); xdmp.documentInsert(   'mydoc.xml',   fn.head(xdmp.unq...
I am trying to pass a variable into the MarkLogic 8.0.4 xdmp.eval() like this:  var spo = 'spo-role'; var spoRoleRes = xdmp.eval("var sec = require('/MarkLogic/security.xqy'); sec.createRole(role)",(role, spo),{"database&#...
There are a lot of questions here involving cross domain requests, CORS, headers, etc. I have tried nearly everything I can find but to no avail. There may be something in the MarkLogic documentation about this but I have wasted hours in there and it...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.