Skip to content

Commit a7d1541

Browse files
pradelAetherall
authored andcommitted
update README to show how to pass options
1 parent c69aaaf commit a7d1541

File tree

3 files changed

+270
-388
lines changed

3 files changed

+270
-388
lines changed

packages/accounts-mongo/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ const db = await mongodb.MongoClient.connect(process.env.MONGO_URL);
3434
const client = await mongodb.MongoClient.connect(process.env.MONGO_URL);
3535
const db = client.db('my-db-name');
3636

37-
const accountsServer = new AccountsServer({ db: new MongoDBInterface(db) });
37+
const accountsMongo = new Mongo(db, options);
38+
const accountsServer = new AccountsServer({ db: accountsMongo });
3839
```
3940

4041
The users will be saved under the `users` collection.

packages/accounts-mongo/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"coveralls": "3.0.0",
6060
"husky": "0.14.3",
6161
"jest": "22.4.2",
62-
"jest": "21.2.1",
6362
"prettier": "1.11.1",
6463
"pretty-quick": "1.4.1",
6564
"ts-jest": "22.4.1",

0 commit comments

Comments
 (0)