* Set the skip for the cursor. * * @param value - The skip for the cursor query.
(value: number)
| 482 | * @param value - The skip for the cursor query. |
| 483 | */ |
| 484 | skip(value: number): this { |
| 485 | this.throwIfInitialized(); |
| 486 | if (this.findOptions.tailable) { |
| 487 | throw new MongoTailableCursorError('Tailable cursor does not support skip'); |
| 488 | } |
| 489 | |
| 490 | if (typeof value !== 'number') { |
| 491 | throw new MongoInvalidArgumentError('Operation "skip" requires an integer'); |
| 492 | } |
| 493 | |
| 494 | this.findOptions.skip = value; |
| 495 | return this; |
| 496 | } |
| 497 | } |
no outgoing calls