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. Information about the success or failure of the write operation will be provided directly by the driver as a return value.getLastError
、db.getLastError()
或db.getLastErrorObj()
的代码都应该使用CRUD API来发出具有所需写入关注的写入。关于写入操作的成功或失败的信息将由驱动程序直接作为返回值提供。
← findAndModify
getMore →