Open History to see the last commit
1---
2id: getLiveQueryWindowCollectionWarning
3title: getLiveQueryWindowCollectionWarning
4---
5
6# Function: getLiveQueryWindowCollectionWarning()
7
8```ts
9function getLiveQueryWindowCollectionWarning(collection, expectedLimit): string | undefined;
10```
11
12Defined in: [packages/db/src/live-query-window-controller.ts:401](https://github.com/TanStack/db/blob/main/packages/db/src/live-query-window-controller.ts#L401)
13
14**`Internal`**
15
16Validate a pre-created infinite-query collection and describe any window
17adjustment the adapter should warn about.
18
19 Shared validation for infinite-query adapters.
20
21## Parameters
22
23### collection
24
25[`Collection`](../interfaces/Collection.md)\<`any`, `any`, `any`\>
26
27### expectedLimit
28
29`number`
30
31## Returns
32
33`string` \| `undefined`