We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3cbae7 commit a38c33eCopy full SHA for a38c33e
src/modules/mongodb.ts
@@ -1,14 +1,10 @@
1
import { Logger } from '@nodescript/logger';
2
import { config } from 'mesh-config';
3
import { dep } from 'mesh-ioc';
4
-import { Db, MongoClient, MongoClientOptions } from 'mongodb';
+import { Db, MongoClient } from 'mongodb';
5
6
import { getGlobalMetrics } from '../main/index.js';
7
8
-interface MongoClientOptionsExtended extends MongoClientOptions {
9
- useUnifiedTopology: boolean;
10
-}
11
-
12
export class MongoDb {
13
client: MongoClient;
14
@@ -22,10 +18,8 @@ export class MongoDb {
22
18
23
19
constructor() {
24
20
this.client = new MongoClient(this.MONGO_URL, {
25
- useNewUrlParser: true,
26
- useUnifiedTopology: true,
27
21
ignoreUndefined: true,
28
- } as MongoClientOptionsExtended);
+ });
29
}
30
31
get db(): Db {
0 commit comments