Open History to see the last commit
1---
2id: trackQuery
3title: trackQuery
4---
5
6# Function: trackQuery()
7
8```ts
9function trackQuery(
10 collectionId,
11 fieldPath,
12 executionTimeMs): void;
13```
14
15Defined in: [packages/db/src/indexes/index-registry.ts:96](https://github.com/TanStack/db/blob/main/packages/db/src/indexes/index-registry.ts#L96)
16
17Track a query for dev mode analysis
18
19## Parameters
20
21### collectionId
22
23`string`
24
25### fieldPath
26
27`string`[]
28
29### executionTimeMs
30
31`number`
32
33## Returns
34
35`void`