> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get release file

> Return release file.

`releaseFile(projectReference: String!, releaseReference: String!, fileReference: String!, includeServerFunctions: Boolean, fields: String): ReleaseFile!`

Requires project.read.

## Arguments

| Argument | Type | Required | Description |
| - | - | - | - |
| `projectReference` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Yes | Project UUID, slug or configured domain. |
| `releaseReference` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Yes | Release ID, latest or a version specifier. |
| `fileReference` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Yes | Project-relative file path, for example pages/index.mdx, or file ID. |
| `includeServerFunctions` | [`Boolean`](https://veryfront.com/docs/cloud/graphql/types/boolean) | No | Set to false to read server-function source only as an editor. Omit to use the rule every GraphQL file read uses. |
| `fields` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Accepted as on REST, for example (id,path,size); the selection set chooses the fields GraphQL serves. |

## Response

Returns [`ReleaseFile!`](https://veryfront.com/docs/cloud/graphql/types/releasefile). Open the type for its fields and nested types.

| Field | Type | Description |
| - | - | - |
| `binary` | [`BinaryCompanionDescriptor`](https://veryfront.com/docs/cloud/graphql/types/binarycompaniondescriptor) | Immutable binary companion identity, when this version carries one. |
| `id` | [`ID!`](https://veryfront.com/docs/cloud/graphql/types/id) | File ID. |
| `versionId` | [`ID!`](https://veryfront.com/docs/cloud/graphql/types/id) | ID of the file version the release pins. |
| `path` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Project-relative file path. |
| `content` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | File content at the pinned version. |
| `type` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | File kind: page, function, component or file. |
| `size` | [`Float!`](https://veryfront.com/docs/cloud/graphql/types/float) | Content size in bytes. |
| `updatedAt` | [`DateTime!`](https://veryfront.com/docs/cloud/graphql/types/datetime) | RFC 3339 time the pinned version was written. |

[All fields of `ReleaseFile`](https://veryfront.com/docs/cloud/graphql/types/releasefile).

Types marked with `!` cannot be null. Lists use `[Type]` notation. The [type index](https://veryfront.com/docs/cloud/graphql/schema.md) lists all published input and response types.

## Example

```graphql title="query.graphql" theme={null}
query ReleaseFile($projectReference: String!, $releaseReference: String!, $fileReference: String!, $includeServerFunctions: Boolean, $fields: String) {
  releaseFile(projectReference: $projectReference, releaseReference: $releaseReference, fileReference: $fileReference, includeServerFunctions: $includeServerFunctions, fields: $fields) {
    id
    updatedAt
    content
    links
    path
  }
}
```

```json title="variables.json" theme={null}
{
  "projectReference": "00000000-0000-4000-8000-000000000001",
  "releaseReference": "example",
  "fileReference": "example"
}
```

<details>
  <summary>Try this query</summary>

  Calls use `https://api.veryfront.com/graphql`. Replace sample values with resources you can access. See [Authentication](https://veryfront.com/docs/cloud/authentication.md) for credentials and permissions.

  Bearer token or API key

  Stored in this tab's session. Clear credential

  Query

  Variables (JSON)
</details>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.