> ## 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.

# plans



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

## 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

`PlanConnection!`

**`edges`**: `[PlanEdge!]!`

Array of edges.

---

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

Paging information

---

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

Fetch total count of records

## Examples

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

```json Response
{
  "data": {
    "plans": {
      "edges": [
        {
          "cursor": "value",
          "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

- [Plan](https://docs.stigg.io/graphql-reference/types/Plan.md)
- [Creating plans](https://docs.stigg.io/documentation/modeling-your-pricing-in-stigg/plans/creating-plans.md)
- [Free plans](https://docs.stigg.io/documentation/modeling-your-pricing-in-stigg/plans/defining-plan-pricing/free.md)
- [Archiving plans](https://docs.stigg.io/documentation/modeling-your-pricing-in-stigg/plans/archiving-plans.md)
- [Publishing plans](https://docs.stigg.io/documentation/modeling-your-pricing-in-stigg/plans/publishing-plans.md)


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