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描述
deleteDeletes one or more documents.删除一个或多个文档。
findSelects documents in a collection or a view.选择集合或视图中的文档。
findAndModifyReturns and modifies a single document.返回和修改单个文档。
getLastErrorRemoved in MongoDB 5.1.在MongoDB 5.1中删除。
getMoreReturns batches of documents currently pointed to by the cursor.返回游标当前指向的文档批次。
insertInserts one or more documents.插入一个或多个文档。
resetErrorRemoved in MongoDB 5.0.在MongoDB 5.0中删除。 Resets the last error status.重置上次错误状态。
updateUpdates one or more documents.更新一个或多个文档。
←  geoSearchdelete →