Melon-dbMelon-db
API reference@melon-db/db-react

useFindManyState

@melon-db/db-react — useFindManyState

@melon-db/db-react API Reference


Function: useFindManyState()

useFindManyState<T, U>(collection, args?, options?): QueryAsyncState<U>

Defined in: hooks.ts:281

Reactive Prisma-style findMany hook with loading and error state.

Type Parameters

Type ParameterDefault type
T extends Record<string, unknown>Record<string, unknown>
UT[]

Parameters

ParameterType
collectionstring
args?PrismaFindManyArgs
options?UseQueryOptions<T, U>

Returns

QueryAsyncState<U>