I'm getting connection timeout error in my server when i deployed my application in my local machine everything is working as expected but only for few bigger database queries i'm getting this error :
{ result:
{ result:
{ MongoNetworkError: connection 4 to localhost:27017 timed out
at Socket.<anonymous> (/caching/node_modules/mongodb-core/lib/connection/connection.js:259:7)
at Object.onceWrapper (events.js:277:13)
at Socket.emit (events.js:189:13)
at Socket._onTimeout (net.js:443:8)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
name: 'MongoNetworkError',
errorLabels: [Array],
[Symbol(mongoErrorContextSymbol)]: {} } } }