Browse Source

Merge pull request #90 from james-gibson/patch-1

Modified 'result' to 'res' to follow the example conventions used in the...
saintedlama/travis-non-legacy
Mathias Buus 11 years ago
parent
commit
c1c0106f19
  1. 4
      README.md

4
README.md

@ -135,8 +135,8 @@ Note that you need to explicitly set the selection parameter in the `find` call.
With mongojs you can run database commands just like with the mongo shell using `db.runCommand()`
```js
db.runCommand({ping:1}, function(err, result) {
if(!err && result.ok) console.log("we're up");
db.runCommand({ping:1}, function(err, res) {
if(!err && res.ok) console.log("we're up");
});
```

Loading…
Cancel
Save