List branch policies

branchPolicyCollection(input: BranchPolicyCollectionInput!): BranchPolicyCollection!

Requires project.read.

Arguments

ArgumentTypeRequired
inputBranchPolicyCollectionInput!Yes

Input fields

input

BranchPolicyCollectionInput

FieldTypeRequiredDescription
projectReferenceString!Yes
limitIntNoPage size 1-100; defaults to 20.
cursorStringNoPrevious endCursor or previousCursor; retain the same project, principal, filter and page size.
enabledOnlyBooleanNoRestrict to enabled policies; defaults to false.

Response

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

FieldTypeDescription
edges[BranchPolicyCollectionEdge!]!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

graphql
query BranchPolicyCollection($input: BranchPolicyCollectionInput!) {
  branchPolicyCollection(input: $input) {
    previousCursor
    edges {
      cursor
      node {
        id
        projectId
        name
        createdAt
        updatedAt
      }
    }
    pageInfo {
      hasNextPage
      endCursor
      hasPreviousPage
      startCursor
    }
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001"
  }
}