Skip to content

Pagination

OwlFlow uses the Relay-style Cursor Connection pattern for all paginated lists.

Pagination Arguments

  • first: The number of items to return (default: 20).
  • after: The cursor after which to start fetching items.

Connection Object

All list operations return a Connection object containing:

  • totalCount: The total number of items matching the filters.
  • pageInfo: Information about the current page, including hasNextPage and endCursor.
  • nodes: The actual list of data objects for the current page.

Example Query

graphql
query ListScholarships($first: Int, $after: String) {
  scholarships {
    list(pagination: { first: $first, after: $after }) {
      totalCount
      pageInfo {
        hasNextPage
        endCursor
      }
      nodes {
        id
        title
      }
    }
  }
}

OwlFlow Developer Portal