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 -

SoapUI on windows 10 - high DPI/4K scaling issue -

java - why am i getting a "cannot resolve method" error on getApplication? -