Complete the code to skip the first 10 documents in the collection.
db.collection.find().[1](10)
The skip(10) method skips the first 10 documents, useful for pagination.
Complete the code to limit the result to 5 documents after skipping.
db.collection.find().skip(10).[1](5)
The limit(5) method restricts the number of documents returned to 5, useful for pagination.
Fix the error in the code to correctly paginate by skipping 20 and limiting to 10 documents.
db.collection.find().[1](10).skip(20)
The limit(10) should come after skip(20) to correctly limit the number of documents after skipping.
Fill both blanks to paginate: skip 15 documents and limit to 7 documents.
db.collection.find().[1](15).[2](7)
Use skip(15) to skip 15 documents and limit(7) to limit the result to 7 documents for pagination.
Fill all three blanks to paginate and sort: skip 5, limit 10, and sort by 'name' ascending.
db.collection.find().[1](5).[2](10).[3]({ name: 1 })
Use skip(5) to skip 5 documents, limit(10) to limit to 10 documents, and sort({ name: 1 }) to sort by 'name' ascending for pagination.