I'm migrating an express application to serverless application so in my controller folder where I do the connection to MongoDb I dont have access to contex variable to use this code line 'context.callbackWaitsForEmptyEventLoop = false'
Is there any way to access to this variable or I need to move all the connections to handler.js file
Thanks for read
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Nicolas, Great tutorial!!!
I'm migrating an express application to serverless application so in my controller folder where I do the connection to MongoDb I dont have access to contex variable to use this code line 'context.callbackWaitsForEmptyEventLoop = false'
Is there any way to access to this variable or I need to move all the connections to handler.js file
Thanks for read