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

Popular posts from this blog

c++ - list<myClass<int> * > sort -

c - Defining floating point constants, how many digits are useful? -

C# Apple Bonjour - how to monitor service records within Windows -