Docs HomeMongoDB Manual

Query and Write Operation Commands查询和写入操作命令

Note

For details on a specific command, including syntax and examples, click on the link to the command's 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.更新一个或多个文档。