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

# experiments



**query** `experiments(filter: ExperimentFilter, paging: CursorPaging, sorting: [ExperimentSort!]): ExperimentConnection!`

## Arguments

**`filter`**: `ExperimentFilter` = {}

Specify to filter the records returned.

---

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

Limit or page results.

---

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

Specify to sort results.

## Returns

`ExperimentConnection!`

**`edges`**: `[ExperimentEdge!]!`

Array of edges.

---

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

Paging information

---

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

Fetch total count of records

## Examples

```graphql Query
query Experiments {
  experiments {
    edges {
      cursor
      node {
        controlGroupName
        createdAt
        customers {
          __typename
        }
        description
        environment {
          __typename
        }
        environmentId
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "experiments": {
      "edges": [
        {
          "cursor": "value",
          "node": {
            "controlGroupName": "string",
            "createdAt": "value",
            "customers": {
              "__typename": "Customer"
            },
            "description": "string",
            "environment": {
              "__typename": "Environment"
            },
            "environmentId": "value"
          }
        }
      ],
      "pageInfo": {
        "endCursor": "value",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "value"
      },
      "totalCount": 1
    }
  }
}
```


## Related topics

- [Experiment](https://docs.stigg.io/graphql-reference/types/Experiment.md)
- [experiment](https://docs.stigg.io/graphql-reference/queries/experiment.md)
- [Running pricing experiments](https://docs.stigg.io/documentation/rolling-out-pricing-changes-with-confidence/experiments.md)
- [ExperimentStats](https://docs.stigg.io/graphql-reference/types/ExperimentStats.md)
- [ExperimentStatus](https://docs.stigg.io/graphql-reference/types/ExperimentStatus.md)


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