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

Method skip

src/cursor/find_cursor.ts:484–496  ·  view source on GitHub ↗

* Set the skip for the cursor. * * @param value - The skip for the cursor query.

(value: number)

Source from the content-addressed store, hash-verified

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}

Calls

no outgoing calls

Tested by 4

makeTestFunction · 0.36
makeCursorFunction · 0.36
finishedFunction · 0.36
runProseTestsForFunction · 0.36