File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 1
1
import { Logger } from '@nodescript/logger' ;
2
2
import { config } from 'mesh-config' ;
3
3
import { dep } from 'mesh-ioc' ;
4
- import { Db , MongoClient , MongoClientOptions } from 'mongodb' ;
4
+ import { Db , MongoClient } from 'mongodb' ;
5
5
6
6
import { getGlobalMetrics } from '../main/index.js' ;
7
7
8
- interface MongoClientOptionsExtended extends MongoClientOptions {
9
- useUnifiedTopology : boolean ;
10
- }
11
-
12
8
export class MongoDb {
13
9
client : MongoClient ;
14
10
@@ -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 ) ;
22
+ } ) ;
29
23
}
30
24
31
25
get db ( ) : Db {
You can’t perform that action at this time.
0 commit comments