|  |  | 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 [[https://docs.mongodb.com/manual/reference/method/db.cursor.pretty/index.html|MongoDB Manual]].
 
 
 [[[@cG
 
 <cursor>.pretty()
 
 ]]]
 
 
 **Arguments**
 
 [[[@w
 
 |@t0@r0@c0 <cursor> | | A result set. |
 
 ]]]
 
 
 **Returns**
 
 [[[@w
 
 Returns a result set (cursor).
 
 ]]]
 
 
 **Example**
 
 [[[@cw
 
 db.employees.find().pretty();
 
 ]]]
 
 Displays all employees as formatted BSON documents.
 
 
 
 
 
 
 ----
 [[Main|home]] | [[MongoDB Driver Function Reference]] | [[MongoDB Driver]]
 
 |