feat(nodejs): expose offset (#1620)

PR closes #1555
This commit is contained in:
Gagan Bhullar
2024-09-09 12:54:40 -06:00
committed by GitHub
parent 2a6586d6fb
commit bcc19665ce
3 changed files with 19 additions and 0 deletions

View File

@@ -396,6 +396,10 @@ describe("When creating an index", () => {
.toArrow();
expect(rst2.numRows).toBe(2);
expect(rst.toString()).toEqual(rst2.toString());
// test offset
rst = await tbl.query().limit(2).offset(1).nearestTo(queryVec).toArrow();
expect(rst.numRows).toBe(1);
});
it("should allow parameters to be specified", async () => {