mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 20:00:02 +00:00
feat(MongoDB Node): Add driver info to MongoDB nodes (#18615)
This commit is contained in:
@@ -3,7 +3,11 @@ import { Collection, MongoClient } from 'mongodb';
|
||||
import type { INodeParameters, WorkflowTestData } from 'n8n-workflow';
|
||||
|
||||
MongoClient.connect = async function () {
|
||||
const client = new MongoClient('mongodb://localhost:27017');
|
||||
const driverInfo = {
|
||||
name: 'n8n_crud',
|
||||
version: '1.2',
|
||||
};
|
||||
const client = new MongoClient('mongodb://localhost:27017', { driverInfo });
|
||||
return client;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user