Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

isSingleResultCollection.md

22 lines477 Bytes

function isSingleResultCollection(collection): boolean;

Defined in: packages/db/src/live-query-adapter.ts:35

Whether a collection yields a single result (findOne) rather than an array.

Parameters

collection

Collection<any, any, any>

Returns

boolean