Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose op:sample-by in Node Client API #592

Closed
llinggit opened this issue Aug 18, 2021 · 1 comment
Closed

Expose op:sample-by in Node Client API #592

llinggit opened this issue Aug 18, 2021 · 1 comment
Assignees
Milestone

Comments

@llinggit
Copy link

As task in bugtrack, https://bugtrack.marklogic.com/55089
A sample query as below

xquery version "1.0-ml";
import module namespace op="http://marklogic.com/optic"
at "/MarkLogic/optic.xqy";
op:from-view("opticUnitTest", "musician")
=> op:sample-by(map:map()=>map:with("limit", 2))
=> op:result()

@ehennum
Copy link
Contributor

ehennum commented Sep 21, 2021

I'm guessing that the SJS unit test for sampleBy() can be adapted to provide a Node.js API unit test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants