Re:MongoDB Interactive Geospatial Tutorial
by ch0wn on Tuesday April 05, 2011 @09:03AM
(#2410734)
I'm stuck at lesson 6. After typing 'db.treasures.find({location: {$near: [0, 0]}, {type: "gold"})' the loading indicator stays and I get the javascript error "Uncaught TypeError: Cannot read property 'x' of undefined" (Chrome 11).
[ Parent
| on HN ]
you can type help to get help...or lesson(7); to skip to the next lesson.
the correct command is db.treasures.find({location: {$near: [0, 0]}, type: "gold"}).limit(5);
you have an extra { infront of "type"...making it invalid json.