📄 tanstack/db/latest/docs/reference/type-aliases/LiveQueryCollectionUtils

File: LiveQueryCollectionUtils.md | Updated: 11/15/2025

Source: https://tanstack.com/db/latest/docs/reference/type-aliases/LiveQueryCollectionUtils



TanStack

DB v0v0

Search...

+ K

Auto

Log In

TanStack StartRC

Docs Examples GitHub Contributors

TanStack Router

Docs Examples GitHub Contributors

TanStack Query

Docs Examples GitHub Contributors

TanStack Table

Docs Examples Github Contributors

TanStack Formnew

Docs Examples Github Contributors

TanStack DBbeta

Docs Github Contributors

TanStack Virtual

Docs Examples Github Contributors

TanStack Paceralpha

Docs Examples Github Contributors

TanStack Storealpha

Docs Examples Github Contributors

TanStack Devtoolsalpha

Docs Github Contributors

More Libraries

Maintainers Partners Support Learn StatsBETA Discord Merch Blog GitHub Ethos Brand Guide

Documentation

Framework

React logo

React

Version

Latest

Search...

+ K

Menu

Getting Started

Guides

Collections

Frameworks

Community

API Reference

Framework

React logo

React

Version

Latest

Menu

Getting Started

Guides

Collections

Frameworks

Community

API Reference

On this page

LiveQueryCollectionUtils

Copy Markdown

Type Alias: LiveQueryCollectionUtils
====================================

ts

type LiveQueryCollectionUtils = UtilsRecord & object;


type LiveQueryCollectionUtils = UtilsRecord & object;

Defined in: packages/db/src/query/live/collection-config-builder.ts:39

Type Declaration
----------------
### [LIVE_QUERY_INTERNAL]

ts

[LIVE_QUERY_INTERNAL]: LiveQueryInternalUtils;


[LIVE_QUERY_INTERNAL]: LiveQueryInternalUtils;

### getRunCount()

ts

getRunCount: () => number;


getRunCount: () => number;

#### Returns

number

### getWindow()

ts

getWindow: () => 
  | {
  limit: number;
  offset: number;
}
  | undefined;


getWindow: () => 
  | {
  limit: number;
  offset: number;
}
  | undefined;

Gets the current window (offset and limit) for an ordered query.

#### Returns

| { limit: number; offset: number; } | undefined

The current window settings, or undefined if the query is not windowed

### setWindow()

ts

setWindow: (options) => true | Promise<void>;


setWindow: (options) => true | Promise<void>;

Sets the offset and limit of an ordered query. Is a no-op if the query is not ordered.

#### Parameters ##### options

WindowOptions

#### Returns

true | Promise<void>

true if no subset loading was triggered, or Promise<void> that resolves when the subset has been loaded

Edit on GitHub

Home

Partners Become a Partner

Code RabbitCode Rabbit CloudflareCloudflare AG GridAG Grid NetlifyNetlify NeonNeon WorkOSWorkOS ClerkClerk ConvexConvex ElectricElectric SentrySentry PrismaPrisma StrapiStrapi UnkeyUnkey

scarf analytics