Dumps a mongodb collection to a stream.
dumps a mongodb collection to a stream.
Specify a mongoDB connect URI, the collection, and a path to the target file.
Dump a collection to stream:
var todo = null;
var dump = require'mongodb-collection-dump'
Create a new dump instance
d that connects to the mongodb database at
connectURI and dumps the entire collection to
This event fires when no more data will be provided from the database and after the database connection has closed.
Emitted when there is a error connecting to the database.
With npm do:
npm install mongodb-collection-dump