DEV Community

Discussion on: Building a Serverless REST API using MongoDB(mongoose), NodeJs and Serverless framework

Collapse
 
carletto10 profile image
Carletto10

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