meteor-rxjs icon indicating copy to clipboard operation
meteor-rxjs copied to clipboard

Rxjs operators on MongoObservable.Collection

Open pierremzz opened this issue 8 years ago • 0 comments

Hi there,

I am struggling to find a way to use the last() rxjs operator on some MongoObservable.Collection like this:

import 'rxjs/add/operator/last';

const NewsfeedCollection = new MongoObservable.Collection<NewsfeedCollectionModel>("newsfeed");

NewsfeedCollection.find({})
          .last()
          .subscribe(console.log);

There is no results logged, if some of you have met the same issue

pierremzz avatar Aug 24 '17 12:08 pierremzz