Remote / foldkit-remote-drizzle

toQueryPage

function · packages/remote-drizzle/src/page.ts:26

function toQueryPage<Row>({
  entity,
  rows,
  pageSize,
  traversal,
  cursor,
  idOf,
  cursorOf,
}: {
  readonly entity: string
  readonly rows: ReadonlyArray<Row>
  readonly pageSize: number
  readonly traversal: Traversal
  readonly cursor: string | undefined
  readonly idOf: (row: Row) => string
  readonly cursorOf: (row: Row) => string
}): QueryPage