πŸ’
Cherry3
Support
  • πŸ₯³Welcome
    • πŸ“•Change Log
  • πŸŽ—οΈModel & Schema
    • πŸͺ‘Usage & Options
  • πŸ’Operators
    • 🧡find()
    • 🧡allRows()
    • 🧡findOne()
    • 🧡findOneAndUpdate()
    • 🧡findOneAndDelete()
    • 🧡findById()
    • 🧡findByIdAndUpdate()
    • 🧡findByIdAndDelete()
    • 🧡insertOne()
    • 🧡insertMany()
    • 🧡updateOne()
    • 🧡updateMany()
    • 🧡deleteOne()
    • 🧡deleteMany()
    • 🧡create() & save()
    • 🧡schemaInfo()
    • 🧡dropCollection()
    • 🧡renameCollection()
    • 🧡renameColumn()
    • 🧡deleteColumn()
    • 🧡distinct()
    • 🧡countDocuments()
    • 🧡inspect()
    • 🧡aggregate()
  • πŸ”§Other Operators
    • πŸ†™Update Operators
      • ⚑$set
      • ⚑$unset
      • ⚑$inc
      • ⚑$dec
      • ⚑$push
      • ⚑$pull
      • ⚑$pop
    • πŸ“‘Filter & Process Operators
      • ⚑$limit
      • ⚑$skip
      • ⚑$sort
      • ⚑$upsert
      • ⚑$multiPull
  • πŸͺSQL Config File
Powered by GitBook
On this page

Was this helpful?

  1. πŸ”§Other Operators
  2. πŸ“‘Filter & Process Operators

⚑$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"]},
]
*/

})();
Previous$limitNext$sort

Last updated 1 year ago

Was this helpful?