Urigo / meteor-rxjs

Exposing Mongo Cursor as RxJS Observable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rxjs operators on MongoObservable.Collection

pierremzz opened this issue · 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