This is probably because findAll is a function, and functions need function syntax. While testing, errors complaining of missing credentials. This probably means that no password was entered.
Code
This is how I would recommend correcting the code:
console.log(mongo.findall(cred.mongoPass))
Just pull the mongo password from the credential grabber.
Summary
The findAll function is missing its parameter mongoPass.
The function at the end of app.ts won't work.
Details
This is probably because
findAll
is a function, and functions need function syntax. While testing, errors complaining of missing credentials. This probably means that no password was entered.Code
This is how I would recommend correcting the code:
Just pull the mongo password from the credential grabber.
Summary
The
findAll
function is missing its parametermongoPass
.