title: How should the backend code be if I want to give a part of a large amount of data and provide more and more as the frontend asks?
body: <p>I'm currently using <strong>loopbackjs</strong> for making the API endpoints, and <strong>graphQL</strong> as an intermediate for making queries from the frontend, where I use <strong>Relay and React</strong> framework.<br>
  Now, I have an application where a <strong>user</strong> can view a <strong>list of projects</strong> (The <strong>project</strong> has very generic information like creation date, name, etc.). This list of projects can be very large. So its infeasible to just send all the projects at once. Now, I want to send the first few projects to the frontend and then as the user scrolls down, I want to send a part of the remaining projects when the user reaches the end of the list provided to him/her in the frontend.<br>
  I've thought about maintaining a pointer sort of a thing, that indicates till where I've fetched the projects in the list so that I know from where I would fetch the further projects. But this pointer is dependent on the user so for every user I need to maintain a pointer. This gets everything very messy.<br>
  Is there a clean approach for doing what I want with the current stack I am using?</p>