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.有关特定命令的详细信息,包括语法和示例,请单击特定命令以转到其参考页面。

Name名称Description描述
delete Deletes one or more documents.删除一个或多个文档。
find Selects documents in a collection or a view.选择集合或视图中的文档。
findAndModify Returns and modifies a single document.返回和修改单个文档。
getLastError Returns the success status of the last operation.返回上次操作的成功状态。
getMore Returns batches of documents currently pointed to by the cursor.返回游标当前指向的成批文档。
insert Inserts one or more documents.插入一个或多个文档。
resetError Deprecated. Resets the last error status.不赞成。重置最后一个错误状态。
update Updates one or more documents.更新一个或多个文档。