Remove MongoDB unified topology deprecation notice from the grid adapters (#5941)
This commit is contained in:
committed by
GitHub
parent
1064f0c3fb
commit
f25a846c3e
@@ -20,7 +20,10 @@ export class GridFSBucketAdapter extends FilesAdapter {
|
||||
super();
|
||||
this._databaseURI = mongoDatabaseURI;
|
||||
|
||||
const defaultMongoOptions = { useNewUrlParser: true };
|
||||
const defaultMongoOptions = {
|
||||
useNewUrlParser: true,
|
||||
useUnifiedTopology: true,
|
||||
};
|
||||
this._mongoOptions = Object.assign(defaultMongoOptions, mongoOptions);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user