diff --git a/src/gun-mongo.js b/src/gun-mongo.js index 7a4c3f8..78c1475 100644 --- a/src/gun-mongo.js +++ b/src/gun-mongo.js @@ -25,6 +25,8 @@ module.exports = new NodeAdapter({ let dbString; if (typeof obj === "string") { dbString = mongo; + this.indexInBackground = opt.indexInBackground || false; + this.collection = opt.collection || "gun"; } else { let database = mongo.database || 'gun'; let port = mongo.port || '27017';