News for hackers. Stuff that matters.
Re:MongoDB interactive tutorial by steilpass on Wednesday March 16, 2011 @06:24AM (#2331503)
Lesson 6 asks for 'Here's a tricky one: get ONLY the NAMES of the 2nd and 3rd heaviest male unicorns' Which made me query: db.unicorns.find({gender:'m'}, {name:1, _id:0}).sort({weight:-1}).skip(1).limit(2) but it wants: db.unicorns.find({gender:'m'}, {name:1}).sort({weight:-1}).skip(1).limit(2)
Re:MongoDB interactive tutorial by latch on Wednesday March 16, 2011 @08:10AM (#2331691)
Hey, thanks! I didn't know you could exclude the _id like that...I can actually make us of that trick. Going to push out a new version with that, and a few other fixes, in a few.
Re:MongoDB interactive tutorial by lowglow on Wednesday March 16, 2011 @12:27PM (#2332669)
Lesson 7 quit on me. How do I skip lessons? Ze mouze clickz, zey do nottingz.
Re:MongoDB interactive tutorial by latch on Wednesday March 16, 2011 @09:49PM (#2334754)
lesson(8);