List deployments

listDeployments(input: ListDeploymentsInput!): DeploymentsConnection!

Requires project.deployments.read.

Arguments

ArgumentTypeRequired
inputListDeploymentsInput!Yes

Input fields

input

ListDeploymentsInput

FieldTypeRequiredDescription
projectReferenceStringNo
environmentIdIDNo
limitIntNo
sortByStringNoSort field. Only created_at.
sortOrderStringNo
cursorStringNo

Response

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

FieldType
data[Deployment!]!
pageInfoPageInfo!

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

Example

query.graphql
query ListDeployments($input: ListDeploymentsInput!) {  listDeployments(input: $input) {    data {      id      createdAt      updatedAt      environmentId      releaseId    }    pageInfo {      hasNextPage      endCursor      hasPreviousPage      startCursor    }  }}
variables.json
{  "input": {    "projectReference": "00000000-0000-4000-8000-000000000001"  }}