# EntityRetriever<T> · FT4 TypeScript client · Chromia Docs (concept)

> type EntityRetriever< T > = { retrieve : (
        limit?: number,
        cursor?: OptionalPageCursor ,
    ) => Promise< PaginatedEntity < T >>;
} Type P

Source: https://docs.chromia.com/pages/ft4-ts-client/types/utils.EntityRetriever/

Type Alias

# EntityRetriever<T>

On this page

* [Properties](#properties)
* [retrieve](#retrieve)

```signature
type EntityRetriever<T> = {
    retrieve: (
        limit?: number,
        cursor?: OptionalPageCursor,
    ) => Promise<PaginatedEntity<T>>;
}
```

#### Type Parameters

* T

## Properties

### retrieve

```signature
retrieve: (
    limit?: number,
    cursor?: OptionalPageCursor,
) => Promise<PaginatedEntity<T>>
```

Retrieves a page of the data

#### Type Declaration

* ```signature
  (limit?: number, cursor?: OptionalPageCursor): Promise<PaginatedEntity<T>>
  ```

  + #### Parameters

    - `Optional`limit: number

      maximum number of entries in the returned page
    - `Optional`cursor: [OptionalPageCursor](https://docs.chromia.com/pages/ft4-ts-client/types/ft-session.OptionalPageCursor/)

      where the page starts

    #### Returns Promise<[PaginatedEntity](https://docs.chromia.com/pages/ft4-ts-client/types/utils.PaginatedEntity/)<[T](#t)>>

    a page staring at cursor location and containing at most `limit` number of items.

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-ts-client/types/utils.EntityRetriever.html)Generated API reference, mirrored from the live docs
