We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
bufferedCount
AbstractCursor
1 parent e2b76fa commit ff34eb8Copy full SHA for ff34eb8
1 file changed
src/change_stream.ts
@@ -706,8 +706,8 @@ export class ChangeStream<
706
}
707
708
/** Returns the currently buffered documents length of the underlying cursor. */
709
- get bufferedCount(): number | undefined {
710
- return this.cursor?.bufferedCount();
+ bufferedCount(): number {
+ return this.cursor?.bufferedCount() ?? 0;
711
712
713
/** Check if there is any document still available in the Change Stream */
0 commit comments