# projectConnections

```graphql
query ProjectConnections($input: ProjectConnectionsInput!) {
  projectConnections(input: $input) {
    data {
      id
      connectionGenerationId
      userId
      integration
      scope
      displayName
      canDisconnect
      canReconnect
      createdAt
      updatedAt
      status
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
      prev
    }
    total
  }
}
```

List the connections. Requires project.integrations.read.

## Arguments

| Name                     | Type                     | Required | Description |
| ------------------------ | ------------------------ | -------- | ----------- |
| `input`                  | ProjectConnectionsInput! | Yes      |             |
| `input.integration`      | String                   |          |             |
| `input.projectReference` | String!                  | Yes      |             |
| `input.cursor`           | String                   |          |             |
| `input.limit`            | Int                      |          |             |
| `input.sortBy`           | String                   |          |             |
| `input.sortOrder`        | String                   |          |             |

## Variables

```json
{
  "input": {
    "projectReference": "string"
  }
}
```

## Responses

| Status | Description                                            |
| ------ | ------------------------------------------------------ |
| 200    | The ManagedConnectionList! in data.projectConnections. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query ProjectConnections($input: ProjectConnectionsInput!) {\n  projectConnections(input: $input) {\n    data {\n      id\n      connectionGenerationId\n      userId\n      integration\n      scope\n      displayName\n      canDisconnect\n      canReconnect\n      createdAt\n      updatedAt\n      status\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n      prev\n    }\n    total\n  }\n}",
  "variables": {
    "input": {
      "projectReference": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "projectConnections": {
      "data": [
        {
          "id": "string",
          "connectionGenerationId": "string",
          "userId": "string",
          "integration": "string",
          "scope": "string",
          "displayName": "string",
          "canDisconnect": false,
          "canReconnect": false,
          "createdAt": "string",
          "updatedAt": "string",
          "status": "string"
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string",
        "prev": "string"
      },
      "total": 0
    }
  }
}
```
