Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 7dd552a

Browse files
committed
Improving LoadModulesTest by verifying that a service can import a library module
1 parent 961bf43 commit 7dd552a

File tree

1 file changed

+14
-0
lines changed
  • src/test/resources/sample-app/build/mlRestApi/some-library/ml-modules/services

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
xquery version "1.0-ml";
2+
3+
module namespace resource = "http://marklogic.com/rest-api/resource/echo";
4+
5+
import module namespace sample = "urn:sampleapp" at "/ext/some-lib.xqy";
6+
7+
declare function get(
8+
$context as map:map,
9+
$params as map:map
10+
) as document-node()*
11+
{
12+
sample:foo(),
13+
()
14+
};

0 commit comments

Comments
 (0)