Skip to main content
server.RelatedReader A database reader that also follows declared navigation.

Type parameters

Methods

▸ related<Table, Name>(id, name): string extends keyof Schema ? any : RelatedResult<DataModel, 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

Parameters

Returns

string extends keyof Schema ? any : RelatedResult<DataModel, Navigations<Schema, Table>[Name & NavigationEntries<Schema, Table> extends { name: Name } ? Name : never], Paginated>