@internal
(db: Db, command: Document, options: RunCursorCommandOptions = {})
| 136 | |
| 137 | /** @internal */ |
| 138 | constructor(db: Db, command: Document, options: RunCursorCommandOptions = {}) { |
| 139 | super(db.client, ns(db.namespace), options); |
| 140 | this.db = db; |
| 141 | this.command = Object.freeze({ ...command }); |
| 142 | } |
| 143 | |
| 144 | /** @internal */ |
| 145 | protected async _initialize(session: ClientSession): Promise<InitialCursorResponse> { |