getLastError

getLastError

Removed in MongoDB 5.1.在MongoDB 5.1中删除。

Any code explicitly using getLastError, db.getLastError(), or db.getLastErrorObj() should instead use the CRUD API to issue the write with the desired write concern. 任何显式使用getLastErrordb.getLastError()db.getLastErrorObj()的代码都应该使用CRUD API发出具有所需写入关注点的写入。Information about the success or failure of the write operation will be provided directly by the driver as a return value.有关写入操作成功或失败的信息将由驱动程序直接作为返回值提供。

←  findAndModifygetMore →