{"record":{"id":"88ac16ee5a31b205","repo":"Automattic/mongoose","slug":"collection-findoneandupdate-unimplemented-by-drive","errorCode":null,"errorMessage":"Collection#findOneAndUpdate unimplemented by driver","messagePattern":"Collection#findOneAndUpdate unimplemented by driver","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"lib/collection.js","lineNumber":168,"sourceCode":"\nCollection.prototype.createIndex = function() {\n  throw new Error('Collection#createIndex unimplemented by driver');\n};\n\n/**\n * Abstract method that drivers must implement.\n */\n\nCollection.prototype.findAndModify = function() {\n  throw new Error('Collection#findAndModify unimplemented by driver');\n};\n\n/**\n * Abstract method that drivers must implement.\n */\n\nCollection.prototype.findOneAndUpdate = function() {\n  throw new Error('Collection#findOneAndUpdate unimplemented by driver');\n};\n\n/**\n * Abstract method that drivers must implement.\n */\n\nCollection.prototype.findOneAndDelete = function() {\n  throw new Error('Collection#findOneAndDelete unimplemented by driver');\n};\n\n/**\n * Abstract method that drivers must implement.\n */\n\nCollection.prototype.findOneAndReplace = function() {\n  throw new Error('Collection#findOneAndReplace unimplemented by driver');\n};\n","sourceCodeStart":150,"sourceCodeEnd":186,"githubUrl":"https://github.com/Automattic/mongoose/blob/49cdab01366679723b487ecb754b38570f783289/lib/collection.js#L150-L186","documentation":"Error \"Collection#findOneAndUpdate unimplemented by driver\" thrown in Automattic/mongoose.","triggerScenarios":"Thrown at lib/collection.js:168 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"49cdab01366679723b487ecb754b38570f783289","analyzedAt":"2026-08-21T22:54:00.882Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}