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

# offers



**query** `offers(filter: OfferFilter, paging: CursorPaging, sorting: [OfferSort!]): OfferConnection!`

## Arguments

**`filter`**: `OfferFilter` = {}

Specify to filter the records returned.

---

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

Limit or page results.

---

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

Specify to sort results.

## Returns

`OfferConnection!`

**`edges`**: `[OfferEdge!]!`

Array of edges.

---

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

Paging information

---

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

Fetch total count of records

## Examples

```graphql Query
query Offers {
  offers {
    edges {
      cursor
      node {
        accountId
        createdAt
        description
        draftDetails {
          __typename
        }
        environmentId
        id
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "offers": {
      "edges": [
        {
          "cursor": "value",
          "node": {
            "accountId": "string",
            "createdAt": "value",
            "description": "string",
            "draftDetails": {
              "__typename": "OfferDraftDetails"
            },
            "environmentId": "value",
            "id": "value"
          }
        }
      ],
      "pageInfo": {
        "endCursor": "value",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "value"
      },
      "totalCount": 1
    }
  }
}
```


## Related topics

- [Offer](https://docs.stigg.io/graphql-reference/types/Offer.md)
- [OfferStatus](https://docs.stigg.io/graphql-reference/types/OfferStatus.md)
- [OfferConnection](https://docs.stigg.io/graphql-reference/types/OfferConnection.md)
- [OfferEdge](https://docs.stigg.io/graphql-reference/types/OfferEdge.md)
- [OfferFilter](https://docs.stigg.io/graphql-reference/types/OfferFilter.md)


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