Home / Type/ CollectionFetch Type — supabase Architecture

CollectionFetch Type — supabase Architecture

Architecture documentation for the CollectionFetch type/interface in connections.ts from the supabase codebase.

Entity Profile

Source Code

apps/docs/resources/utils/connections.ts lines 224–245

export interface CollectionFetch<ItemType, FetchArgs = unknown, ErrorType = Error> {
  fetch: (
    args?: IPaginationArgs & {
      additionalArgs?: FetchArgs
    }
  ) => Promise<
    Result<
      {
        items: Array<ItemType>
        totalCount: number
        hasNextPage?: boolean
        hasPreviousPage?: boolean
      },
      ErrorType
    >
  >
  args?: IPaginationArgs & {
    additionalArgs?: FetchArgs
  }
  getCursor: (item: ItemType, idx?: number) => string
  items?: never
}

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free