Tag Archives: forEach cursor

MongoDB -Get Size, RowCount, CollectionSize

There are two different ways of getting the desired result The first method is iterating through each collection using for loop and displaying the result cols = db.getCollectionNames(); for (index = 0; index < cols.length; index++) { var coll = … Continue reading

Posted in MongoDB | Tagged , , | Leave a comment