Docs 菜单
Docs 主页
/
MongoDB Manual

db.getLastError()

已在 MongoDB 5.1 中删除。

任何显式使用 getLastErrordb.getLastError()db.getLastErrorObj() 的代码都应使用增删改查 API来发出带有所需 写关注(write concern)的写入。有关写入操作是成功还是失败的信息将由驱动程序直接作为返回值提供。

来年

MongoDB 是什么?