Get branch

branch(input: GetBranchInput!): Branch

Requires project.read.

Arguments

ArgumentTypeRequired
inputGetBranchInput!Yes

Input fields

input

GetBranchInput

FieldTypeRequired
idID!Yes

Response

Returns Branch. Open the type for its fields and nested types.

FieldType
idID!
projectIdID!
nameString!
baseBranchIdID
createdAtString!
createdByID
mergedAtString
mergedByID

All fields of Branch.

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

Example

graphql
query Branch($input: GetBranchInput!) {
  branch(input: $input) {
    id
    projectId
    name
    status
    createdAt
  }
}
json
{
  "input": {
    "id": "00000000-0000-4000-8000-000000000001"
  }
}