How to use mongodb skip() and limit() in meteor ?

How to use mongodb skip() and limit() in meteor ?

Asked on November 27, 2018 in Meteor.
Add Comment


  • 2 Answer(s)

    You will try to putting to skip and limit options as for object parameter within the find() method as follows:

    Post.find({"user_id":user_id}, {skip: 0, limit: 5});
    
    
    Answered on November 27, 2018.
    Add Comment

    Here you can see theĀ  doc about below link:

    collection.find([selector], [options])

    Then skip and limit are options of the find method

    Answered on November 30, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.