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.



<cursor>.pretty()



Arguments


<cursor> A result set (like returned by find())



Returns


Returns a cursor (result set).



Example


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


Displays all employees as formatted BSON documents.









home | MongoDB Driver Function Reference | MongoDB Driver