title: Listing all collections in a mongo database within a nodejs script
body: <p>I have found a few answers for listing collections in the shell but all the answers I have found for listing collections in a nodejs script seem to have been deprecated, answers like <code>collectionNames</code> and <code>moongose.connection.db</code> return has no method. </p>