Hot answers tagged

4

Please visit our official site for documents: http://rockmongo.com


4

From what I can see, RockMongo does not support the creation of geo indexes directly. Because creating an index is really just an insert into the system.indexes collection for the database (ensureIndex is just a shell helper), it is possible. So, you can still do it via RockMongo, but it is arguably more complicated than using the CLI. Here is how I ...


2

That error implies there is already data in TestDataBase.testCollections. You might consider using the --drop option: Before restoring the collections from the dumped backup, drops the collections from the target database. --drop does not drop collections that are not in the backup. When the restore includes the admin database, mongorestore with ...


2

You can try this GUI tool for MongoDB(MongoBooster) if you still need this feature. At the right bottom, that's a (show log) icon, you can view the real query run at the background. It's also have plenty of code templates in the editor to use and learn. Disclaimer: I‘m the co-creator of this app.


2

Technically you don't have this feature in MySQL either - PHPMyAdmin is a third part tool just like rockmongo, but basically rockmongo does not have the features you want. I am sure there are features people would like in PHPMyAdmin too that are not there yet. When that happens you basically have 3 options: Request the feature from the people running the ...


1

To iterate through and list out all of the items returned by the cursor from find(), I used something like this: function () { var cur = db.tablebusiness.find({ "_id": "the-simmons-paradise__41.85_-87.88" }); var result = []; cur.forEach(function(item) { result.push(item); }); return result; } Since you need to actually return the ...


1

The find() method returns a cursor object. In order to view the first returned record in the cursor you must call the next() method. function () { return db.tablebusiness.find({ "_id": "the-simmons-paradise__41.85_-87.88" }).next(); }



Only top voted, non community-wiki answers of a minimum length are eligible