We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 659d2cc commit 317055bCopy full SHA for 317055b
lib/core/cursor.js
@@ -683,7 +683,7 @@ function initializeCursor(cursor, callback) {
683
684
// Otherwise fall back to regular find path
685
const cursorId = result.cursorId || 0;
686
- cursor.cursorState.cursorId = Long.fromNumber(cursorId);
+ cursor.cursorState.cursorId = cursorId instanceof Long ? cursorId : Long.fromNumber(cursorId);
687
cursor.cursorState.documents = result.documents;
688
cursor.cursorState.lastCursorId = result.cursorId;
689
0 commit comments