Query for a specific amount of objects

Hello, I’m new to Parse.
Is there a way to query for just a piece of information? I didn’t find any docs about it. Like for example I have a User class with 100 entries (with query.ascending(‘name’)) and I want only the 5th to 10th entries.
I need to code an infinite scroll basically, if it’s better to put it that way for you. Thanks!

You are looking for a combination of skip and limit.

.limit is how many objects, .skip is where to start.

So for you:

query.skip(5);
query.limit(5);

Thank you so much! You are very helpful. Have a great day.