diff --git a/node/DEVELOPER.md b/node/DEVELOPER.md
index 8878fdd91d..9568e3be82 100644
--- a/node/DEVELOPER.md
+++ b/node/DEVELOPER.md
@@ -156,6 +156,7 @@ In order to run these tests, use:
```bash
npm run test-modules -- --cluster-endpoints=
:
```
+
Note: these tests don't run with standalone server as of now.
### REPL (interactive shell)
diff --git a/node/src/Commands.ts b/node/src/Commands.ts
index e7e10d7e5f..96a9e65764 100644
--- a/node/src/Commands.ts
+++ b/node/src/Commands.ts
@@ -3855,6 +3855,7 @@ export interface BaseScanOptions {
*/
export interface ScanOptions extends BaseScanOptions {
type?: ObjectType;
+ allowNonCoveredSlots?: boolean;
}
/**
diff --git a/node/src/GlideClusterClient.ts b/node/src/GlideClusterClient.ts
index 0524128dd5..326ab7a949 100644
--- a/node/src/GlideClusterClient.ts
+++ b/node/src/GlideClusterClient.ts
@@ -596,6 +596,7 @@ export class GlideClusterClient extends BaseClient {
command.objectType = options.type;
}
+ command.allowNonCoveredSlots = options?.allowNonCoveredSlots ?? false;
return command;
}
@@ -651,14 +652,14 @@ export class GlideClusterClient extends BaseClient {
* console.log(allKeys); // ["key1", "key2", "key3"]
*
* // Iterate over keys matching a pattern
- * await client.mset([{key: "key1", value: "value1"}, {key: "key2", value: "value2"}, {key: "notMykey", value: "value3"}, {key: "somethingElse", value: "value4"}]);
+ * await client.mset([{key: "key1", value: "value1"}, {key: "key2", value: "value2"}, {key: "notMyKey", value: "value3"}, {key: "somethingElse", value: "value4"}]);
* let cursor = new ClusterScanCursor();
* const matchedKeys: GlideString[] = [];
* while (!cursor.isFinished()) {
* const [cursor, keys] = await client.scan(cursor, { match: "*key*", count: 10 });
* matchedKeys.push(...keys);
* }
- * console.log(matchedKeys); // ["key1", "key2", "notMykey"]
+ * console.log(matchedKeys); // ["key1", "key2", "notMyKey"]
*
* // Iterate over keys of a specific type
* await client.mset([{key: "key1", value: "value1"}, {key: "key2", value: "value2"}, {key: "key3", value: "value3"}]);