diff --git a/packages/nodes-base/nodes/MongoDb/MongoDb.node.ts b/packages/nodes-base/nodes/MongoDb/MongoDb.node.ts index 00dfe9f3a7..30eefb02b1 100644 --- a/packages/nodes-base/nodes/MongoDb/MongoDb.node.ts +++ b/packages/nodes-base/nodes/MongoDb/MongoDb.node.ts @@ -160,6 +160,7 @@ export class MongoDb implements INodeType { throw new Error(`The operation "${operation}" is not supported!`); } + client.close(); return this.prepareOutputData(returnItems); } }