Skip to content
New issue

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

issues #13, #14 and #15 #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

issues #13, #14 and #15 #16

wants to merge 1 commit into from

Conversation

sergioramos
Copy link

Issue #13

I didn't found any reference to the variable value, so i just deleted and everything worked as expected.

Issue #14

Instead of returning a stream, it calls the callback whith the stream as parameter.

So, insted of

var stream = article.find({date: {$range: {$start: null, $end: null}}}).stream();

stream.on('record', function(record) {
  console.log(record);
});
stream.on('error', function(err) {
  throw(err);
});
stream.on('end', function() {
  console.log('ended');
});

it should now be

article.find({date: {$range: {$start: null, $end: null}}}).stream(function (stream) {   
    stream.on('record', function(record) {
      console.log(record);
    });
    stream.on('error', function(err) {
      throw(err);
    });
    stream.on('end', function() {
      console.log('ended');
    });
});

Issue #15

Tried array.map and proccess.nextTick to prevent the RangeError, but only worked using async's forEachSeries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants