How to use skip()
and limit()
in meteor?
Post.find({"user_id":user_id}).skip(0).limit(5);
when I execute above line server says
Exception while invoking method 'Userpost' TypeError: Object [object Object] has no method 'skip'
How to use skip()
and limit()
in meteor?
Post.find({"user_id":user_id}).skip(0).limit(5);
when I execute above line server says
Exception while invoking method 'Userpost' TypeError: Object [object Object] has no method 'skip'
Here is the doc about collection.find([selector], [options])
skip and limit are options of the find method