robbiblubber.org

help | login | search:  
>>

read  source  history 


pretty()


MongoDB Driver Function Reference


Formats BSON output in an easy-to-read format.
More information can be found in the corresponding entry of the MongoDB Manual.



<cursor>.pretty()



Arguments


<cursor> A result set.



Returns


Returns a result set (cursor).



Example


db.employees.find().pretty();


Displays all employees as formatted BSON documents.







home | MongoDB Driver Function Reference | MongoDB Driver