MCPcopy
hub / github.com/mongodb/node-mongodb-native / bufferedCount

Method bufferedCount

src/change_stream.ts:708–710  ·  view source on GitHub ↗

Returns the currently buffered documents length of the underlying cursor.

()

Source from the content-addressed store, hash-verified

706
707 /** Returns the currently buffered documents length of the underlying cursor. */
708 bufferedCount(): number {
709 return this.cursor?.bufferedCount() ?? 0;
710 }
711
712 /** Check if there is any document still available in the Change Stream */
713 async hasNext(): Promise<boolean> {

Callers 5

testFunction · 0.80
cacheResumeTokenMethod · 0.80

Calls

no outgoing calls

Tested by 1

testFunction · 0.64