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

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

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