i'm trying to create a node which uses the mongodb api to connect to a mongodb database.
mongodb:require('mongodb') in the setting.js and additional
"mongodb": "*" in the package.json, don't know if this is required.
I allways get the modules over the global context like
var MongoClient = global.get('mongodb').MongoClient.
MongoClient.connect(...) works well i get a database connection and can make operations, but when i try to use a MongoClient object there occures the following error when i call the
TypeError: mongodb.open is not a function.
Can anybody please help me?