Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ Follow the codes below to create a config object:
var config = {
fields: [], // {array} data to import
db: 'name', // {string} name of db
collection: 'collection' // {string|function} name of collection, or use a function to
collection: 'collection', // {string|function} name of collection, or use a function to
// return a name, accept one param - [fields] the fields to import

// they're options
host: 'localhost:27017', // {string} [optional] by default is 27017
username: 'sofish', // {string} [optional]
password: '***' // {string} [optional]
password: '***', // {string} [optional]
callback: (err, db) => {} // {function} [optional]
};
```
Expand Down