aslagle / reactive-table

A reactive table designed for Meteor
https://atmospherejs.com/aslagle/reactive-table
Other
328 stars 137 forks source link

Reactive.publish Mongo selector support for $slice #432

Open joshuagamboa opened 8 years ago

joshuagamboa commented 8 years ago

It's essentially to limit how many is returned from a collection. I am not sure if I am using it correctly though.

ReactiveTable.publish('latest_tickets', Tickets, function () { return {'_id': {'$slice': 5}}; });

Right now I get an error in shell when trying to use it: MongoError: unknown operator: $slice.

aslagle commented 8 years ago

I'm not sure if that's supported by Meteor collections - does it work if you try to use it in a regular Meteor publication?