robbiblubber.org

help | login | search:  
>>

show wiki  show source  compare to current  compare to previous  read  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 (like returned by find())



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