We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am reading a csv file and streaming the data through a mongoose.js model.
csv
myFile.js
var stream = fs.createReadStream("name of file"); fcsv(stream) .on('data', function(data) { ModelName.find(query, function(err, docs) { console.log('docs', docs); }); }) .on('end', function() { console.log('done'); }) .parse();
The script runs and a list of docs is printed out. But the on('end') is not triggered.
What can I do to call the on('end')?
The text was updated successfully, but these errors were encountered:
Is this still an issue in the latest version?
Sorry, something went wrong.
doug-martin
No branches or pull requests
I am reading a
csv
file and streaming the data through a mongoose.js model.myFile.js
var stream = fs.createReadStream("name of file"); fcsv(stream) .on('data', function(data) { ModelName.find(query, function(err, docs) { console.log('docs', docs); }); }) .on('end', function() { console.log('done'); }) .parse();
The script runs and a list of docs is printed out.
But the on('end') is not triggered.
What can I do to call the on('end')?
The text was updated successfully, but these errors were encountered: