Pinged your deployment. You successfully connected to MongoDB!
new User: { name: ‘Rakib Hasain’, email: ‘rakibkhancmt@gmail.com’ }
G:\simple-mongodb-app\node_modules\mongodb\lib\operations\execute_operation.js:40
throw new error_1.MongoNotConnectedError(‘Client must be connected before running operations’);
^
MongoNotConnectedError: Client must be connected before running operations
at executeOperation (G:\simple-mongodb-app\node_modules\mongodb\lib\operations\execute_operation.js:40:19)
at Collection.insertOne (G:\simple-mongodb-app\node_modules\mongodb\lib\collection.js:154:63)
at G:\simple-mongodb-app\index.js:34:39
at Layer.handle [as handle_request] (G:\simple-mongodb-app\node_modules\express\lib\router\layer.js:95:5)
at next (G:\simple-mongodb-app\node_modules\express\lib\router\route.js:149:13)
at Route.dispatch (G:\simple-mongodb-app\node_modules\express\lib\router\route.js:119:3)
at Layer.handle [as handle_request] (G:\simple-mongodb-app\node_modules\express\lib\router\layer.js:95:5)
at G:\simple-mongodb-app\node_modules\express\lib\router\index.js:284:15
at Function.process_params (G:\simple-mongodb-app\node_modules\express\lib\router\index.js:346:12)
at next (G:\simple-mongodb-app\node_modules\express\lib\router\index.js:280:10) {
[Symbol(errorLabels)]: Set(0) {}
}
Node.js v20.12.2
[nodemon] app crashed - waiting for file changes before starting…