- allow only 12 character ObjectID strings #249
- add missing Bluebird dependency
- Fix issue in full-text searching #122
- Add
dbName
parameter to constructor. Example:adapter: new MongoAdapter("mongodb://localhost", { useNewUrlParser: true }, "moleculer-db-demo")
- fix wrong method name from
ojectIDToString
toobjectIDToString
-
Update
mongodb
lib to v3.0.5 -
Changed constructor signature (compatible with mongodb driver)
Example with connection URI
new MongoDBAdapter("mongodb://localhost/moleculer-db")
Example with connection URI & options
new MongoDBAdapter("mongodb://db-server-hostname/my-db", { keepAlive: 1 })