Skip to content

Commit 133f09d

Browse files
committed
fixed #344
1 parent 01da647 commit 133f09d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

marklogic-data-hub/src/main/resources/scaffolding/harmonize/sjs/collector.sjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
* @return - an array of ids or uris
77
*/
88
function collect(options) {
9-
return cts.uris(null, null, cts.trueQuery());
9+
// by default we return the URIs in the same collection as the Flow name
10+
return cts.uris(null, null, cts.collectionQuery(options.flow));
1011
}
1112

1213
module.exports = {

marklogic-data-hub/src/main/resources/scaffolding/harmonize/xqy/collector.xqy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ declare option xdmp:mapping "false";
1414
declare function plugin:collect(
1515
$options as map:map) as xs:string*
1616
{
17-
cts:uris((), (), cts:true-query())
17+
(: by default we return the URIs in the same collection as the Flow name :)
18+
cts:uris((), (), cts:collection-query(map:get($options, "flow")))
1819
};
1920

0 commit comments

Comments
 (0)