Skip to main content

isSingleResultCollection

还没翻译译自英文(tanstack.com)本页 8 段都还没译

function isSingleResultCollection(collection): boolean;

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

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

Parameters

collection

Collection<any, any, any>

Returns

boolean