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

isSingleResultCollection.md

24 lines517 Bytes

Function: isSingleResultCollection()

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