angularjs - How to add limit in meteor query? -
i want limit 2 records using query.
self.helpers({ avalibility: () => { return setavalibility.find({}).fetch(2); } })
and not working,but same in robomongo working fine.
db.avalibility.find({}).limit(2)
it better not use .fetch() ;)
avalibility: () => { return setavalibility.find({}, {limit: 2}); }
Comments
Post a Comment