The admin list shows orders newest first, 10 per page, ordered by placedAt desc then _id desc. The last order on page 5 was { placedAt: ISODate("2026-08-27T22:38:00.000Z"), _id: ObjectId("0d3e000000000000000000b7") }. Return page 6 (number, placedAt) without skip, reading at most 11 index keys and exactly 10 documents.
Your answer returns 10 documents with the fields number, placedAt. Order matters.
The data
The shop database from the MongoDB playground, running in your browser. "Today" is 2026-11-18.
categories18 docs
_id
ObjectId
name
string
parentId
null | ObjectId
path
string
suppliers6 docs
_id
ObjectId
name
string
country
string
rating
double
since
date
products26 docs
_id
ObjectId
sku
string
name
string
categoryId
ObjectId
supplierId
ObjectId
price
decimal
tags
array of string
stock
array of objects
warehouseqty
active
boolean
createdAt
date
customers30 docs
_id
ObjectId
name
string
email
string
tier
string
addresses
array of objects
typestreetcitycountryziplocation
preferences
object
newslettercurrency
lifetimeValue
decimal
joinedAt
date
marketingOptIn
boolean
phone
string, 24 of 30
lastLogin
date, 15 of 30
externalRef
int | string, 10 of 30
loyaltyPoints
int, 18 of 30
referredBy
ObjectId, 17 of 30
orders220 docs
_id
ObjectId
number
string
customerId
ObjectId
placedAt
date
status
string
statusHistory
array of objects
statusat
items
array of objects
productIdskunameqtyunitPrice
shipping
object
typestreetcitycountryziplocationmethod
total
decimal
currency
string
supportAgentId
ObjectId, 33 of 220
note
string, 33 of 220
reviews87 docs
_id
ObjectId
productId
ObjectId
customerId
ObjectId
orderId
ObjectId
rating
int
comment
string
at
date
employees9 docs
_id
ObjectId
name
string
title
string
reportsTo
null | ObjectId
Hints
Hint 1. "After the last row" with a tie-breaker: placedAt lower, or the same placedAt with a lower _id.
Common traps
.skip(50) still walks 60 index entries: page 600 walks 6,000.
Paging on placedAt alone skips or repeats orders that share a timestamp.
How this is graded here: No skip; the filter is a $or range on (placedAt, _id) strictly after the given cursor; sort { placedAt: -1, _id: -1 }; limit 10; an index on { placedAt: -1, _id: -1 } or its reverse. (Minileaf scans the $or from the start of the index, so key counts cannot be used.)
Free for personal practice. Please don't republish the questions or solutions. See the Playground License Terms.
Run in the shell with Ctrl/⌘ + Enter. Check with Shift + Ctrl/⌘ + Enter.
"Check answer" runs your shell code on a fresh copy of the data, then on 2 hidden test datasets with more customers and orders, and compares each result with the expected one. The value of your last line is your answer.
Check your answer to see how it executes: keys and documents read, the index used, and whether it sorted in memory.