My Node app with a MongoDB database functions perfectly in localhost, but when deployed to Google App Engine, a specific function stops working. This function uses the .map method to retrieve information from the MongoDB by fetching a value into a JavaScript object based on the mongo generated _id field.
Some questions that come to mind are:
- Could there be an environmental reason why this function is not working in Google App Engine?
- What alternatives to the .map method exist? Is .forEach a better option?
- Any suggestions on where to begin troubleshooting when something works in localhost but not when deployed to GAE?