{"record":{"id":"740539f3cb8d47eb","repo":"denoland/deno","slug":"invalid-mutation-type","errorCode":null,"errorMessage":"Invalid mutation type","messagePattern":"Invalid mutation type","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"ext/kv/01_db.ts","lineNumber":504,"sourceCode":"          }\n          break;\n        case \"set\":\n          if (typeof mutation.expireIn === \"number\") {\n            expireIn = mutation.expireIn;\n          }\n          validateExpireIn(expireIn);\n          /* falls through */\n        case \"sum\":\n        case \"min\":\n        case \"max\":\n          type = mutation.type;\n          if (!ObjectHasOwn(mutation, \"value\")) {\n            throw new TypeError(`Invalid mutation '${type}' without value`);\n          }\n          value = serializeValue(mutation.value);\n          break;\n        default:\n          throw new TypeError(\"Invalid mutation type\");\n      }\n      ArrayPrototypePush(this.#mutations, [key, type, value, expireIn]);\n    }\n    return this;\n  }\n\n  sum(key: Deno.KvKey, n: bigint): this {\n    ArrayPrototypePush(this.#mutations, [\n      key,\n      \"sum\",\n      serializeValue(new KvU64(n)),\n      undefined,\n    ]);\n    return this;\n  }\n\n  min(key: Deno.KvKey, n: bigint): this {\n    ArrayPrototypePush(this.#mutations, [","sourceCodeStart":486,"sourceCodeEnd":522,"githubUrl":"https://github.com/denoland/deno/blob/89f33cbef296a2b287f323d42de54c871fa69c77/ext/kv/01_db.ts#L486-L522","documentation":"Error \"Invalid mutation type\" thrown in denoland/deno.","triggerScenarios":"Thrown at ext/kv/01_db.ts:504 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":"89f33cbef296a2b287f323d42de54c871fa69c77","analyzedAt":"2026-08-16T07:54:21.310Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}