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...
I can get all the URIs of the documents in a collection by using below XQuery: for $doc in fn:collection("transform") return xdmp:node-uri($doc) But, when I tried to implement this in a Javascript module in MarkLogic, it is getting only l...
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 xml documents like - <domain xmlns:c="http://example.com/ns/core" xmlns="http://example.com/ns/core"> <c:id>http://example.com/xyz/no-data</c:id> </domain> I am using JavaScript in MarkLogic, and wa...
I am using cts.pathRangeQuery on an xml document like - <container xmlns:c="http://example.com/ns/core" xmlns:d="http://example.com/ns/data" xmlns="http://example.com/ns/core"> <c:domain> <d:id>http://...
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...
©2020 All rights reserved.