Paginate Results

Paging is accomplished using the first and after arguments to a Relay Record Connection and follows the specification for Forward Pagination Arguments.

The first argument is the maximum number of records to fetch as part of your query. Follows the specification for Forward Pagination Arguments.

The after argument is a cursor used to page through the result set. Omit the argument or provide a null value to start at the beginning of the result set. Use a returned cursor to continue paging through the result set from that cursor position. The after argument is typically set to the value of the "endCursor" field on the Relay Connection's PageInfo. If you want to page from a particular element in the result set, use the cursor field from a Relay Edge. Follows the specification for Forward Pagination Arguments.

The maximum number of child relationship records to return can be specified using the first argument. However, if supplying a cursor value to the after argument of a child relationship, then the parent Record must be limited to a single result. For example: