|
|
@ -158,7 +158,7 @@ var db = mongojs('rs-1.com,rs-2.com,rs-3.com/mydb?slaveOk=true', ['mycollection' |
|
|
|
|
|
|
|
For more detailed information about replica sets see [the mongo replication docs](http://www.mongodb.org/display/DOCS/Replica+Sets) |
|
|
|
|
|
|
|
## Using with harmony |
|
|
|
## Using harmony features |
|
|
|
|
|
|
|
If you run node.js with the `--harmony` option, then you can ommit the collection names array, and you can do stuff like. |
|
|
|
|
|
|
@ -169,6 +169,8 @@ var db = require('mydb'); |
|
|
|
db.hackers.insert({name: 'Ed'}); |
|
|
|
``` |
|
|
|
|
|
|
|
In the above example the `hackers` collection is enabled automagically (similar to the shell) using the `Proxy` feature in harmony |
|
|
|
|
|
|
|
# API |
|
|
|
|
|
|
|
This API documentation is a work in progress. |
|
|
|