'Connecting to mongoDB(/mongoose) from a website?

I'm creating a website, and currently for a feature I need it to connect to my mongoDB database, is there any way to do this? As far as I've seen it's not possible to require the mongoose module, can I somehow work around this/connect to mongoDB in a different way?

Thanks for reading!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source