problem_solving

TypeError: Class constructor ObjectId cannot be invoked without ‘new’

It looks like you’re working with MongoDB and attempting to create a query using the ObjectId constructor. The error you’re encountering indicates that you’re trying to invoke the ObjectId constructor without using the new keyword. In MongoDB, when you want to create an ObjectId instance, you need to use the new keyword. Here’s an example […]

TypeError: Class constructor ObjectId cannot be invoked without ‘new’ Read More ยป