I am attempting to learn AWS Lambda functions. I have followed the examples of how to create node.js etc. The first eample of connecting to database works fine. So connection is being established. For the example in returning records i copied the code verbatim and get a null response . According to mongochat this is due to AWS, but there is nothing about AWS configuration in the examples provided. Either the example is incomplete or my advice is incorrect.
I have tried to access via VS Code using the connection string and it works. So there is something to do with access via AWS. Connection to the database is successful. What is concerning is the number of open queries. It appears Mongo is not technically supported