Open joshuagamboa opened 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.
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?
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.