Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Scott committed Sep 23, 2015
1 parent 23039da commit 54dd2c5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Expand Up @@ -64,6 +64,23 @@ finderFromTest({scooby: 'doo'})().then(function(docs) {
console.log(docs);
});
```
#### count
Count all documents from mongo matching the document query
##### Parameters:
```javascript
//input: String, String, Object OR Function (returns Object)
//output: Function ( accepts parameters of query function )
mf.count(connectionString, collectionName, query)
```
##### Example:
```javascript
var counter = mf.count('mongodb://localhost:27017/mongo-func');
var counterFromTest = counter('test');

counterFromTest({scooby: 'doo'})().then(function(count) {
console.log(count);
});
```
#### insert
Insert document into mongo
##### Parameters:
Expand Down

0 comments on commit 54dd2c5

Please sign in to comment.