Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

docs

  • Loading branch information...
commit 6a08069f6034b717127ebdd133e6705cfd01d435 1 parent c87d167
@seanhess seanhess authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  Readme.md
View
3  Readme.md
@@ -49,12 +49,13 @@ Remember the guiding principle: the syntax exactly matches the [command-line dri
#### Connecting
`mongo.db(host, port, dbname, [prefix], [username], [password])` - returns an unopened database object.
+
* If prefix is specified all collections will use the prefix in mongo, but you refer to them without the prefix in node.
* If username and password are specified, it will attempt to authenticate.
`db.collection(name)` - Returns a `Collection` object. Also creates `db[name]` so you can do this:
- db.collection('user')
+ db.collection('users')
db.users.count(cb)
Please sign in to comment.
Something went wrong with that request. Please try again.