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