Pkira
4/21/2015 - 3:42 PM

MongoDB

MongoDB

posts = db.posts
posts.find_one({"_id": id})

document = collection.find_one({'_id': id})
client = MongoClient('mongodb://cbrsrvbds10:27017')
db = client['CisionWikipedia']
collection = db['WikiPage']