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 Parameter | Default type |
|---|---|
T extends Record<string, unknown> | Record<string, unknown> |
U | T[] |
Parameters
| Parameter | Type |
|---|---|
collection | string |
args? | PrismaFindManyArgs |
options? | UseQueryOptions<T, U> |
