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

# packageGroups



**query** `packageGroups(filter: PackageGroupFilter, paging: CursorPaging, sorting: [PackageGroupSort!]): PackageGroupConnection!`

## Arguments

**`filter`**: `PackageGroupFilter` = {}

Specify to filter the records returned.

---

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

Limit or page results.

---

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

Specify to sort results.

## Returns

`PackageGroupConnection!`

**`edges`**: `[PackageGroupEdge!]!`

Array of edges.

---

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

Paging information

---

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

Fetch total count of records

## Examples

```graphql Query
query PackageGroups {
  packageGroups {
    edges {
      cursor
      node {
        addons {
          __typename
        }
        createdAt
        description
        displayName
        environmentId
        isLatest
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "packageGroups": {
      "edges": [
        {
          "cursor": "value",
          "node": {
            "addons": [
              {
                "__typename": "Addon"
              }
            ],
            "createdAt": "value",
            "description": "string",
            "displayName": "string",
            "environmentId": "value",
            "isLatest": true
          }
        }
      ],
      "pageInfo": {
        "endCursor": "value",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "value"
      },
      "totalCount": 1
    }
  }
}
```


## Related topics

- [packageGroup](https://docs.stigg.io/graphql-reference/queries/packageGroup.md)
- [PackageGroup](https://docs.stigg.io/graphql-reference/types/PackageGroup.md)
- [PackageGroupAggregateGroupBy](https://docs.stigg.io/graphql-reference/types/PackageGroupAggregateGroupBy.md)
- [PackageGroupStatus](https://docs.stigg.io/graphql-reference/types/PackageGroupStatus.md)
- [PackageGroupConnection](https://docs.stigg.io/graphql-reference/types/PackageGroupConnection.md)


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