branchCollection

List the branches of a project, including its root branch. Requires project.read.

Arguments

  • inputBranchCollectionInput!required

  • input.projectReferenceString!required

    Project UUID, slug, or domain. Requires project.read.

  • input.limitInt

    Page size 1–100; defaults to 20.

  • input.cursorString

    Previous endCursor or previousCursor from this collection, principal, filters and page size.

  • input.searchString

    Case-insensitive partial branch-name match.

  • input.statusBranchCollectionStatus

    Branch status; omit for all persisted branches, including the root branch. One of active, merged, closed, all.

Responses

query BranchCollection($input: BranchCollectionInput!) {  branchCollection(input: $input) {    edges {      cursor    }    pageInfo {      hasNextPage      hasPreviousPage      startCursor      endCursor    }    previousCursor  }}
{  "data": {    "branchCollection": {      "edges": [        {          "cursor": "string"        }      ],      "pageInfo": {        "hasNextPage": false,        "hasPreviousPage": false,        "startCursor": "string",        "endCursor": "string"      },      "previousCursor": "string"    }  }}

The BranchCollection! in data.branchCollection.