4 ms·
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 "
by ch0wn 16y ago
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).
- latch 16y agoyou 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.