Skip to main content
List queries in the Supergraph API support cursor-based pagination to handle large datasets efficiently.

Parameters

You can control pagination using the following parameters in your queries:
  • limit: Number of items per page.
    • Default: 20
    • Maximum: 100
  • offset: Number of items to skip.
  • order_by: Sorting criteria.

Example Query

Here is an example of how to request a paginated list of items:
query GetScheduledDrives($limit: Int, $offset: Int) {
  sch_drive(limit: $limit, offset: $offset, order_by: { start_time: desc }) {
    id
    name
    start_time
    end_time
    status
  }
}

Variables

{
  "limit": 10,
  "offset": 0
}