paint-brush
Bi-Directional Cursor Pagination with React.js, Relay, and GraphQLby@meeq
3,951 reads
3,951 reads

Bi-Directional Cursor Pagination with React.js, Relay, and GraphQL

by Christopher Bonhage9mMay 26th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Pagination comes in many different flavors depending on the desired user experience and the shape of the underlying API. <a href="https://hackernoon.com/tagged/graphql" target="_blank">GraphQL</a> APIs such as <a href="https://developer.github.com/early-access/graphql/" target="_blank">GitHub</a>’s implement the <a href="https://facebook.github.io/relay/graphql/connections.htm" target="_blank">Relay Cursor Connections Specification</a> to standardize pagination and slicing of large result sets. This approach is well-suited to infinite-scrolling, but can also be used for “windowed” paging with next/previous page buttons.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Bi-Directional Cursor Pagination with React.js, Relay, and GraphQL
Christopher Bonhage HackerNoon profile picture
Christopher Bonhage

Christopher Bonhage

@meeq

L O A D I N G
. . . comments & more!

About Author

Christopher Bonhage HackerNoon profile picture
Christopher Bonhage@meeq

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite