Last active
November 9, 2016 11:21
-
-
Save ryanthegiantlion/c641eabddcb50f8aeb2f8cb352a97247 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
show dbs // list all indexes | |
use <db> | |
show collections | |
db.collection.find(<query>) // find given optional query | |
db.directmessages.remove({}) // delete all | |
> use mydb; | |
> db.dropDatabase(); | |
db.foo.update({}, {$set: {lastLookedAt: Date.now() / 1000}}, { multi: true } // update all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment