[MongoDB] shell 내에서 커서를 이용하여 연속으로 출력시키는 방법.
var myCursor = db.inventory.find().addOption(DBQuery.Option.noTimeout);
var myCursor = db.inventory.find(); var myFirstDocument = myCursor.hasNext() ? myCursor.next() : null; myCursor.objsLeftInBatch();
var myCursor = db.inventory.find().addOption(DBQuery.Option.noTimeout);
var myCursor = db.inventory.find(); var myFirstDocument = myCursor.hasNext() ? myCursor.next() : null; myCursor.objsLeftInBatch();