releaseFile

Return release file. Requires project.read.

Arguments

  • projectReferenceString!required

    Project UUID, slug or configured domain.

  • releaseReferenceString!required

    Release ID, latest or a version specifier.

  • fileReferenceString!required

    Project-relative file path, for example pages/index.mdx, or file ID.

  • includeServerFunctionsBoolean

    Set to false to read server-function source only as an editor. Omit to use the rule every GraphQL file read uses.

  • fieldsString

    Accepted as on REST, for example (id,path,size); the selection set chooses the fields GraphQL serves.

Responses

query ReleaseFile($projectReference: String!, $releaseReference: String!, $fileReference: String!) {  releaseFile(projectReference: $projectReference, releaseReference: $releaseReference, fileReference: $fileReference) {    binary {      contentHash      byteSize      contentType    }    id    versionId    path    content    type    size    updatedAt    releaseId    releaseVersion    links  }}
{  "data": {    "releaseFile": {      "binary": {        "contentHash": "string",        "byteSize": 0,        "contentType": "string"      },      "id": "string",      "versionId": "string",      "path": "string",      "content": "string",      "type": "string",      "size": 0,      "updatedAt": "2026-01-01T00:00:00Z",      "releaseId": "string",      "releaseVersion": "string",      "links": {}    }  }}

The ReleaseFile! in data.releaseFile.