Posts Tagged - mongodb

MongoDB

Config

Config. to run MongoDB

  1. Set PATH as system variable (~/.bashrc)
  2. Create folders /data/db and set rw- permissions to correct user.
  3. start mongod

Queries

Find

by element

db.getCollection('documentX').find({ _id : ObjectId("5b7e99a9149559198c5024a4") })

Read More