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

# planVersions

> Get paginated list of plan versions by refId



**query** `planVersions(filter: PlanFilter, paging: CursorPaging, sorting: [PlanSort!]): PlanVersionsConnection!`

## Arguments

**`filter`**: `PlanFilter` = {}

Specify to filter the records returned.

---

**`paging`**: `CursorPaging` = {first: 10}

Limit or page results.

---

**`sorting`**: `[PlanSort!]` = [{direction: DESC, field: createdAt}]

Specify to sort results.

## Returns

`PlanVersionsConnection!`

**`edges`**: `[PlanVersionsEdge!]!`

Edges in the current page

---

**`pageInfo`**: `PageInfo!`

Pagination information

---

**`totalCount`**: `Int!`

Total number of items matching the filter

## Examples

```graphql Query
query PlanVersions {
  planVersions {
    edges {
      cursor
      node {
        additionalMetaData
        awsMarketplacePlanDimension
        basePlan {
          __typename
        }
        billingId
        billingLinkUrl
        compatibleAddons {
          __typename
        }
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "planVersions": {
      "edges": [
        {
          "cursor": "string",
          "node": {
            "additionalMetaData": "value",
            "awsMarketplacePlanDimension": "string",
            "basePlan": {
              "__typename": "Plan"
            },
            "billingId": "string",
            "billingLinkUrl": "string",
            "compatibleAddons": [
              {
                "__typename": "Addon"
              }
            ]
          }
        }
      ],
      "pageInfo": {
        "endCursor": "value",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "value"
      },
      "totalCount": 1
    }
  }
}
```


## Related topics

- [Go SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/go.md)
- [PlanVersionsConnection](https://docs.stigg.io/graphql-reference/types/PlanVersionsConnection.md)
- [PlanVersionsEdge](https://docs.stigg.io/graphql-reference/types/PlanVersionsEdge.md)
- [Migrate subscription to latest plan version](https://docs.stigg.io/api-reference/subscriptions/migrate-subscription-to-latest-plan-version.md)
- [Plan updated new version published](https://docs.stigg.io/api-reference/plans/plan-updated-new-version-published.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.