$skip

Name
Usage Type
Description

$skip

Number

$skip Operator is Used to Specify Skip in Array Response Return. For example, if we require 2 Writers, it will skip at least 2 pieces of data and return other data.

/* Example Usage */
const model = ...Someone Model

(async () => {

await model.find({},{ $skip: 1 });
/*
[
{id:2, name: 'Jesse', surname: 'Clean', age: 5, classNumber: 7, achievements:["reading"]},
]
*/

})();

Last updated