December 1, 2026 · Advent of MongoDB
1. Report for duty Solved
Easyfindprojectionsort
Snow squeaks under your boots as you reach the workshop gate. You're the North Pole's first ever data elf: until this year, the elves kept everything in their heads and on very long scrolls. Pepper Mintwhistle, Head Elf, hands you a mug of cocoa and a login.
"Start gently," she says. "The Wrapping team asked who's on their rota this year. Can you pull that up?"
Your task
List the names of everyone in the Wrapping department, in alphabetical order. Return just name.
Your answer returns 8 documents with the fields name. Order matters.
What happens next
Ribbon Hollyberry pins your list to the wall with a candy cane. "A real list! Printed! No scroll!" Word spreads fast: by lunch, three departments want one.
Solve today's puzzle to read what happens next.
The data
The North Pole's collections, a snapshot taken on December 1, 2026. Times are North Pole time (UTC). A MongoDB-compatible database runs in your browser: use Explore data to browse it.
elves_id, name, department, hiredOn, managerId (→ elves._id, null for the Head Elf), leave: [{ from, to }]children_id, name, country, city, utcOffset, age, wishlist: [toy _id, …] (top wish first)toys_id, name, category, buildMinutes, weightGniceListLog_id, childId, loggedAt, points, reason, recordedBy (→ elves._id), terminal (→ terminals._id)terminals_id (e.g. "LOGI-07"), location, departmentreindeer_id, name, maxLoadKgflights_id, reindeerId, flownOn, km, carrotsbuilds_id, toyId, elfId, builtAt, minutes, passedQccookieBatches_id, bakedAt, elfId, cookiesdoorSwipes_id, elfId, swipedAt, door, direction ("in" or "out")
Hints
department, sort on name.{ _id: 0, name: 1 }.Solution
db.elves.find({ department: "Wrapping" }, { _id: 0, name: 1 }).sort({ name: 1 })
Free to play. Please don't republish the puzzles or solutions. See the Playground License Terms. Also on Advent of SQL.