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

# Interface: RelatedReader<DataModel, Schema, Paginated>

> A database reader that also follows declared navigation.

[server](/api/modules/server).RelatedReader

A database reader that also follows declared navigation.

## Type parameters

| Name | Type |
| :- | :- |
| `DataModel` | extends [`GenericDataModel`](/api/modules/server#genericdatamodel) |
| `Schema` | `Schema` |
| `Paginated` | extends `boolean` = `true` |

## Methods

### related

▸ **related**\<`Table`, `Name`>(`id`, `name`): `string` extends keyof `Schema` ? `any` : [`RelatedResult`](/api/modules/server#relatedresult)\<`DataModel`, [`Navigations`](/api/modules/server#navigations)\<`Schema`, `Table`>\[`Name` & `NavigationEntries`\<`Schema`, `Table`> extends \{ `name`: `Name`  } ? `Name` : `never`], `Paginated`>

Follow a declared navigation. Construction performs no reads; a terminal
resolves the name against the active schema and reads the complete answer
under the caller's authority, including the mutation's pending writes.

#### Type parameters

| Name | Type |
| :- | :- |
| `Table` | extends `string` |
| `Name` | extends `string` |

#### Parameters

| Name | Type |
| :- | :- |
| `id` | [`GenericId`](/api/modules/values#genericid)\<`Table`> |
| `name` | `Name` |

#### Returns

`string` extends keyof `Schema` ? `any` : [`RelatedResult`](/api/modules/server#relatedresult)\<`DataModel`, [`Navigations`](/api/modules/server#navigations)\<`Schema`, `Table`>\[`Name` & `NavigationEntries`\<`Schema`, `Table`> extends \{ `name`: `Name`  } ? `Name` : `never`], `Paginated`>


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