> ## Documentation Index
> Fetch the complete documentation index at: https://help.skillsdb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pagination

> How to paginate query results using limit and offset in the SkillsDB GraphQL API

<Info>
  **Quick Summary:** SkillsDB GraphQL queries support pagination via `limit` and `offset` parameters, available either inside the `input` object or as top-level parameters depending on the query.
</Info>

We provide the option of pagination in queries. You will find it in two different input formats, both of which eventually provide `limit` and `offset` parameters.

## Parameters inside input object

Mostly, you will see the `limit` and `offset` inside the `input` object. For example:

```graphql theme={null}
query getJobRoles {
  getJobRoles (input: {
    offset: 0,
    limit: 100
  }) {
    count
    data {
      JobRoleId
      JobRole
    }
  }
}
```

## Directly as Parameters

For such queries, you will find that the `limit` and `offset` parameters are the top level parameters in the input. For example:

```graphql theme={null}
query getAllPeople {
  getAllPeople(offset: 0, limit: 100) {
    count
    data {
      PersonID
      FirstName
      LastName
      EmailAddress
      Active
      CompanyID
      GroupId
    }
  }
}
```

## Total Count

In the result set of all the queries, you will find 2 top level fields:

* `count` - provides with the total number of records for the requested data
* `data` - array of objects that containing the actual returned data

***

# Need Help?

<Info>
  If you run into any issues or have questions, reach out to your organization's SkillsDB administrator or contact [SkillsDB Support](https://www.skillsdb.com/support).
</Info>
