content_image/802505.jpg content_image/802502.jpg
See Query Documents (page 96) and Read Operations (page 60) documentation for more information and examples. See http://docs.mongodb.org/manual/reference/operator/query to specify other query opera- tors. 

## Error Checking Methods 

Changed in version 2.6. 

The mongo shell write methods now integrates the Write Concern (page 78) directly into the method execution rather than with a separate db.getLastError() method. As such, the write methods now return a WriteResult() object that contains the results of the operation, including any write errors and write concern errors. 

Previous versions used db.getLastError() and db.getLastErrorObj() methods to return error informa- tion. 

## Administrative Command Helpers 

The following table lists some common methods to support database administration: 

<img src='content_image/802505.jpg'>

See also administrative database methods for a full list of methods. 

## Opening Additional Connections 

You can create new connections within the mongo shell. 

The following table displays the methods to create the connections: 

<img src='content_image/802502.jpg'>

See also Opening New Connections (page 270) for more information on the opening new connections from the mongo shell. 

