---
title: "Entry"
description: "One entry of a collection, as a caller sees it."
url: "https://pitlane.tools/package/content/interface/Entry"
---

# Entry

```ts
import type { Entry } from "@pitlane/content";
```

One entry of a collection, as a caller sees it.

## Type Parameters

### Data

`Data`

## Properties

### collection

```ts
collection: string;
```

---

### data

```ts
data: Data;
```

---

### filePath?

```ts
optional filePath?: string;
```

---

### id

```ts
id: string;
```

## Methods

### render()

```ts
render(): Promise<RenderedEntry>;
```

Renders the entry's Markdown or MDX body, from the build's compiled output when `contentLayer()` prebuilt it and from source otherwise. Rejects for an entry its loader gave no body.

#### Returns

`Promise`\<[`RenderedEntry`](https://pitlane.tools/package/content/interface/RenderedEntry.md)>
