We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7edb948 commit 4631e34Copy full SHA for 4631e34
src/cmap/wire_protocol/responses.ts
@@ -122,6 +122,15 @@ export class MongoDBResponse extends OnDemandDocument {
122
123
/** @internal */
124
export class CursorResponse extends MongoDBResponse {
125
+ /**
126
+ * This is a BSON document containing the following:
127
+ * ```
128
+ * { ok: 1, cursor: { id: 0n, nextBatch: new Array(0) } }
129
130
+ * This is used when the client side findCursor is closed by tracking the number returned and limit
131
+ * to avoid an extra round trip. It provides a cursor response that the server _would_ return _if_
132
+ * that round trip were to be made.
133
+ */
134
static emptyGetMore = new CursorResponse(
135
Buffer.from(
136
'NgAAABBvawABAAAAA2N1cnNvcgAhAAAAEmlkAAAAAAAAAAAABG5leHRCYXRjaAAFAAAAAAAA',
0 commit comments