CodeHint


MongoBD (5 items)


There is no links at all!


  Update all documents example

db.foo.update({}, {$set: {lastLookedAt: Date.now() / 1000}}, { multi: true })

  Edit
mongodump --db local --gzip

Dump mongo database in BSON

  Edit
mongorestore --db local --gzip dump/local

Restore BSON dump data

  Edit
mongoexport --db local --collection startup_log --out startup.json --jsonArray --pretty

Export mongo database in JSON

  Edit
mongoimport --db local2 --collection startup --jsonArray startup.json

Import json data to mongo collection

  Edit