Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
add documentation for connect mongodb with username and pass.
  • Loading branch information
kaleocheng committed Jun 14, 2017
1 parent 2472fc8 commit ffebc65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ improvements for MongoDB usage within Node.JS.</strong>

```js
const db = require('monk')('localhost/mydb')
// or
// const db = require('monk')('user:pass@localhost:port/mydb')

const users = db.get('users')

users.index('name last')
Expand Down

0 comments on commit ffebc65

Please sign in to comment.