List the branches of a project, including its root branch. Requires project.read.
Arguments
inputBranchCollectionInput!requiredinput.projectReferenceString!requiredProject UUID, slug, or domain. Requires project.read.
input.limitIntPage size 1–100; defaults to 20.
input.cursorStringPrevious endCursor or previousCursor from this collection, principal, filters and page size.
input.searchStringCase-insensitive partial branch-name match.
input.statusBranchCollectionStatusBranch 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.