Articles → MONGODB → Cursor In Mongodb
Cursor In Mongodb
What Is A Cursor?
Example
Click to Enlarge
Click to Enlarge
Assigning Cursor Object To A Variable
Click to Enlarge
Next And Hasnext Method
Click to Enlarge
Click to Enlarge
Loop Through The Cursor
cursor.forEach(doc=>{printjson(doc)})