Parse & JS: skip and limit function

This entry is part 18 of 25 in the series Parse & Javascript

According to Parse, the skip function would help us in designing pagination.

For example, you might want to have only 10 records in each page.

<!doctype html>
    <title>My Parse App</title>
    <script type='text/javascript' src=''></script>
    <script type='text/javascript' src=''></script>


    Parse.initialize('5d3sro43zBGj8AMYqWND5bFYMzAan7f5P5euZm7M', 'hlRZZqAylA7Fmah4Kk6ma8WK7QCT4cHrxjafnnkI');
    var MoviObject = Parse.Object.extend('MoviObject');
    var moviObject = new MoviObject();

    var query = new Parse.Query(MoviObject);

    query.equalTo('releaseYear', 2013);

                success: function (moviObject) {
                    document.write('<h2>Movies released in the year 2013:</h2>');
                    var i = moviObject.length;
                    i = i - 1;
                    for (i; i >= 0; i--) {
                        var title = moviObject[i].get('titleName');

Try The Code

You can also limit the number of records in the query by using limit.  For example, to show only 2 records, we use


Series Navigation<< Parse & JS: Ascending or descending order
Parse & JS: Sortable types >>

Leave a comment

Leave a Reply