Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVerschueren committed Mar 15, 2015
1 parent 4c150ef commit 40a0844
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ seeder.seed(data).then(function(dbData) {
});
```

The ```seed``` function has three options.
The ```seed``` function has two options.
* **data**: The JSON objects that will be used to create the mongo documents.
* **options**: [optional] Extra options that alter the behaviour. The default behaviour is drop the entire database before seeding it again.
* **callback**: The callback method when the seeding is done.

### Callbacks

Expand All @@ -42,6 +41,9 @@ seeder.seed(data, function(err, dbData) {
})
```

So actually, the seed function has three options if you want to use it with a callback. You can still provide the extra options
as second parameter in the seed function.

### Behaviour

You can also provide extra options that will indicate if the drop strategy. You can choose if the library should drop
Expand Down

0 comments on commit 40a0844

Please sign in to comment.