Skip to content

Wrong type in scanIterator example #3071

@MxKaras

Description

@MxKaras

Description

Tiny point for y'all that tripped me up 🙃. On the latest version of the package, when I write

for await (const key of this.client.scanIterator({ MATCH: keyPattern })) { // ... }

All available evidence shows that that key is string[]. This matches the scan iterator doc, but not what's in the main README:

for await (const key of client.scanIterator()) { // use the key! await client.get(key); }

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions