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

isSingleResultCollection.md

22 lines483 Bytes

function isSingleResultCollection(collection): boolean;

Defined in: packages/db/src/live-query-primitives.ts:41

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

Parameters

collection

Collection<any, any, any>

Returns

boolean