{"record":{"id":"36b9eb43e4d57502","repo":"Automattic/mongoose","slug":"collection-watch-unimplemented-by-driver","errorCode":null,"errorMessage":"Collection#watch unimplemented by driver","messagePattern":"Collection#watch unimplemented by driver","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"lib/collection.js","lineNumber":280,"sourceCode":"\nCollection.prototype.deleteMany = function() {\n  throw new Error('Collection#deleteMany unimplemented by driver');\n};\n\n/**\n * Abstract method that drivers must implement.\n */\n\nCollection.prototype.getIndexes = function() {\n  throw new Error('Collection#getIndexes unimplemented by driver');\n};\n\n/**\n * Abstract method that drivers must implement.\n */\n\nCollection.prototype.watch = function() {\n  throw new Error('Collection#watch unimplemented by driver');\n};\n\n/*!\n * ignore\n */\n\nCollection.prototype._shouldBufferCommands = function _shouldBufferCommands() {\n  const opts = this.opts;\n\n  if (opts.bufferCommands != null) {\n    return opts.bufferCommands;\n  }\n  if (opts?.schemaUserProvidedOptions?.bufferCommands != null) {\n    return opts.schemaUserProvidedOptions.bufferCommands;\n  }\n\n  return this.conn._shouldBufferCommands();\n};","sourceCodeStart":262,"sourceCodeEnd":298,"githubUrl":"https://github.com/Automattic/mongoose/blob/49cdab01366679723b487ecb754b38570f783289/lib/collection.js#L262-L298","documentation":"Error \"Collection#watch unimplemented by driver\" thrown in Automattic/mongoose.","triggerScenarios":"Thrown at lib/collection.js:280 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"}