Read latest release (GraphQL)

getLatestRelease(projectReference: String): Release

Requires project.releases.read.

Arguments

ArgumentTypeRequiredDescription
projectReferenceStringNoProject reference. Defaults to the request's project scope, or the authenticated account's accessible projects. The result is null when that scope has no accessible releases.

Response

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

FieldTypeDescription
idID!
nameString
versionStringSemver version, for example 1.2.3. Null for releases created before versioning.
projectIdID
userIdIDAccount that created the release.
createdAtDateTimeRFC3339 creation timestamp.
updatedAtDateTimeRFC3339 timestamp of the last status or metadata change.
versions[Version!]!File versions captured by this release, hydrated from the linked version records.

All fields of Release.

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

Example

query.graphql
query GetLatestRelease($projectReference: String) {  getLatestRelease(projectReference: $projectReference) {    id    projectId    name    createdAt    updatedAt  }}
variables.json
{  "projectReference": "00000000-0000-4000-8000-000000000001"}