Hello I am using "mongodb": "^4.7.0"
This is the line of code that has an error:
const CLIENT: MongoClient = new MongoClient(MONGO_URI, OPTIONS);
This is the OPTIONS constant:
const OPTIONS = {
useNewUrlParser: true,
useUnifiedTopology: true,
};
This is the error:
Type '{ useNewUrlParser: boolean; useUnifiedTopology: boolean; }' has no properties in common with type 'MongoClientOptions'.
I’ve looked at these answers:
Note: I am not using mongoose like the others in the answers nor am I using poolSize.
Thank you for your time!