List branch approvals

branchApprovalCollection(input: BranchEntityCollectionInput!): BranchApprovalCollection!

Requires project.read.

Arguments

ArgumentTypeRequired
inputBranchEntityCollectionInput!Yes

Input fields

input

BranchEntityCollectionInput

FieldTypeRequiredDescription
branchIdID!YesBranch UUID. Requires project.read on its owning project.
limitIntNoPage size 1-100; defaults to 20.
cursorStringNoPrevious endCursor or previousCursor; retain the same branch, principal and page size.

Response

Returns BranchApprovalCollection!. Open the type for its fields and nested types.

FieldTypeDescription
edges[BranchApprovalCollectionEdge!]!Persisted records in ID ascending order.
pageInfoPageInfo!
previousCursorStringOpaque continuation to the previous page, or null on the first page. Pass as cursor with the same filters and page size.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

query.graphql
query BranchApprovalCollection($input: BranchEntityCollectionInput!) {  branchApprovalCollection(input: $input) {    previousCursor    edges {      cursor      node {        id        approvedAt        approvedBy        branchId        comment      }    }    pageInfo {      hasNextPage      endCursor      hasPreviousPage      startCursor    }  }}
variables.json
{  "input": {    "branchId": "00000000-0000-4000-8000-000000000001"  }}