skip to Main Content

Mongodb – node app.js is not working when i am linking with mongod

const timeoutError = new error_1.MongoServerSelectionError(Server selection timed out after ${serverSelectionTimeoutMS} ms, this.description); MongoServerSelectionError: connect ECONNREFUSED ::1:27017 at Timeout._onTimeout (C:Users*DesktopMONGODBNEW SERVERnode_modulesmongodblibsdamtopology.js:278:38) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) { reason: TopologyDescription { type: 'Unknown', servers: Map(1) { 'localhost:27017' => ServerDescription { address:…

VIEW QUESTION

Javascript – Creating an array of dates efficiently?

I have an availabilities collection. Inside this collection could be a few entries that are date based for example: { "_id": "64b03ed794d87927a3066e13", "startDateTime": "2023-07-07T18:00:00.000Z", "endDateTime": "2023-07-12T15:00:00.000Z", "availabilityType": "blackout" } { "_id": "64b03eb094d87927a3066ddb", "startDateTime": "2023-07-03T18:00:00.000Z", "endDateTime": "2023-07-06T15:00:00.000Z", "availabilityType": "blackout" } I…

VIEW QUESTION
Back To Top
Search