# branchApprovalCollection

```graphql
query BranchApprovalCollection($input: BranchEntityCollectionInput!) {
  branchApprovalCollection(input: $input) {
    edges {
      cursor
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    previousCursor
  }
}
```

List a branch's approvals, including dismissed ones with their dismissal fields. Requires project.read.

## Arguments

| Name             | Type                         | Required | Description                                                                            |
| ---------------- | ---------------------------- | -------- | -------------------------------------------------------------------------------------- |
| `input`          | BranchEntityCollectionInput! | Yes      |                                                                                        |
| `input.branchId` | ID!                          | Yes      | Branch UUID. Requires project.read on its owning project.                              |
| `input.limit`    | Int                          |          | Page size 1–100; defaults to 20.                                                       |
| `input.cursor`   | String                       |          | Previous endCursor or previousCursor; retain the same branch, principal and page size. |

## Variables

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

## Responses

| Status | Description                                                     |
| ------ | --------------------------------------------------------------- |
| 200    | The BranchApprovalCollection! in data.branchApprovalCollection. |

## 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 BranchApprovalCollection($input: BranchEntityCollectionInput!) {\n  branchApprovalCollection(input: $input) {\n    edges {\n      cursor\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n    }\n    previousCursor\n  }\n}",
  "variables": {
    "input": {
      "branchId": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "branchApprovalCollection": {
      "edges": [
        {
          "cursor": "string"
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string"
      },
      "previousCursor": "string"
    }
  }
}
```
