ANNOUNCEMENT: Voyage AI joins MongoDB to power more accurate and trustworthy AI applications on Atlas.
Learn more
Docs 菜单

getLastError

在此页面上

getLastError

已在 MongoDB 5.1 中删除。

凡显式使用 getLastErrordb.getLastError()db.getLastErrorObj() 的代码都应改用 CRUD API 来执行具有所需写关注(write concern)的写入操作。有关写入操作是成功还是失败的信息将作为一个值由驱动程序直接返回。

此命令可用于以下环境中托管的部署:

在此页面上