# retrievePaginatedEntity · FT4 TypeScript client · Chromia Docs (concept)

> retrievePaginatedEntity< T , V extends RawGtv, R extends PagedResponse < V > = PagedResponse < V >,
>(
    queryable: Queryable,
    query: QueryObject< R 

Source: https://docs.chromia.com/pages/ft4-ts-client/functions/utils.retrievePaginatedEntity/

Function

# retrievePaginatedEntity

* ```signature
  retrievePaginatedEntity<
      T,
      V extends RawGtv,
      R extends PagedResponse<V> = PagedResponse<V>,
  >(
      queryable: Queryable,
      query: QueryObject<R, DictPair>,
      dataMapper: (arg: V[]) => T[],
  ): Promise<PaginatedEntity<T>>
  ```

  #### Type Parameters

  + T

    type of entity that will be returned (note: Type of a single entity, not a list)
  + V extends RawGtv

    type of data returned from the blockchain
  + R extends [PagedResponse](https://docs.chromia.com/pages/ft4-ts-client/types/ft-session.PagedResponse/)<[V](#retrievepaginatedentityv)> = [PagedResponse](https://docs.chromia.com/pages/ft4-ts-client/types/ft-session.PagedResponse/)<[V](#retrievepaginatedentityv)>

  #### Parameters

  + queryable: Queryable

    to use to make queries to blockchain
  + query: QueryObject<[R](#retrievepaginatedentityr), DictPair>

    the query to perform
  + dataMapper: (arg: [V](#retrievepaginatedentityv)[]) => [T](#retrievepaginatedentityt)[]

    function that transforms data from the type returned by backend to the type returned to caller

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

  an object that contains a method to fetch a page from a paginated endpoint

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