Open History to see the last commit
1---
2id: isSingleResultCollection
3title: isSingleResultCollection
4---
5
6# Function: isSingleResultCollection()
7
8```ts
9function isSingleResultCollection(collection): boolean;
10```
11
12Defined in: [packages/db/src/live-query-adapter.ts:35](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-adapter.ts#L35)
13
14Whether a collection yields a single result (`findOne`) rather than an array.
15
16## Parameters
17
18### collection
19
20[`Collection`](../interfaces/Collection.md)\<`any`, `any`, `any`\>
21
22## Returns
23
24`boolean`