Returns the currently buffered documents length of the underlying cursor.
()
| 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> { |
no outgoing calls