Mongoose connectivity with express app

MongoNetworkError: Socket connection timeout
at connectionFailureError (C:\Users\Deepak\Desktop\Mern-app\bachend\node_modules\mongodb\lib\cmap\connect.js:370:20)
at TLSSocket. (C:\Users\Deepak\Desktop\Mern-app\bachend\node_modules\mongodb\lib\cmap\connect.js:293:22)
at Object.onceWrapper (node:events:626:26)
at TLSSocket.emit (node:events:511:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
cause: Error [ERR_SOCKET_CONNECTION_TIMEOUT]: Socket connection timeout
at new NodeError (node:internal/errors:399:5)
at internalConnectMultiple (node:net:1099:20)
at Timeout.internalConnectMultipleTimeout (node:net:1638:3)
at listOnTimeout (node:internal/timers:575:11)
at process.processTimers (node:internal/timers:514:7) {
code: ‘ERR_SOCKET_CONNECTION_TIMEOUT’
},
connectionGeneration: 1,
[Symbol(errorLabels)]: Set(1) { ‘ResetPool’ }
}

[nodemon] clean exit - waiting for changes before restart

i have not able to connect mongodb atlas ny mongoose driver in express app