翻译或纠错本页面
- Reference >
- Database Commands >
- Query and Write Operation Commands
Query and Write Operation Commands¶
Name | Description |
---|---|
insert | Inserts one or more documents. |
update | Updates one or more documents. |
delete | Deletes one or more documents. |
findAndModify | Returns and modifies a single document. |
text | Performs a text search. |
getLastError | Returns the success status of the last operation. |
getPrevError | Returns status document containing all errors since the last resetError command. |
resetError | Resets the last error status. |
eval | Runs a JavaScript function on the database server. |
parallelCollectionScan | Lets applications use multiple parallel cursors when reading documents from a collection. |