Query and Write Operation Commands

Note

For details on specific commands, including syntax and examples,click on the specific command to go to its reference page.

NameDescription
deleteDeletes one or more documents.
findSelects documents in a collection or a view.
findAndModifyReturns and modifies a single document.
getLastErrorReturns the success status of the last operation.
getMoreReturns batches of documents currently pointed to by the cursor.
getPrevErrorReturns status document containing all errors since the last resetError command.
insertInserts one or more documents.
resetErrorResets the last error status.
updateUpdates one or more documents.