ObjectId() gets depreciated
whenever I am using new mongoose.Types.ObjectId(id) object id gets depreciated and I am getting this – The signature ‘(inputId: number): ObjectId’ of ‘ObjectId’ is deprecated.ts(6387)
bson.d.ts(1247, 8): The declaration was marked as deprecated here.
(alias) new ObjectId(inputId: number): mongoose.mongo.BSON.ObjectId (+6 overloads)
import ObjectId
Create ObjectId from a number.
“How to efficiently fetch data from multiple collections: multiple API calls vs. single API call which queries from multiple collections?” [closed]
Closed 4 days ago.
Why cannot I connect to mongo db?
I am not able to connect to my database via mongo db compass.
CRUD operation using express
{
“message”: “Data validation failed: firstname: Path firstname
is required., lastname: Path lastname
is required.”
}