File Name :find_one.js

mongo = new Mongo(“localhost”);
wordsDB = mongo.getDB(“words”);
wordsColl = wordsDB.getCollection(“word_stats”);
word = wordsColl.findOne();
print(“Single Document: “);
printjson(word);

ice_screenshot_20151226-202837

Advertisements