Open History to see the last commit
1---
2id: getQueryIdentity
3title: getQueryIdentity
4---
5
6# Function: getQueryIdentity()
7
8```ts
9function getQueryIdentity(query): QueryIdentity;
10```
11
12Defined in: [packages/db/src/query/ir-stable-identity.ts:85](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir-stable-identity.ts#L85)
13
14Returns the semantic identity of a structured query.
15
16Logical conjunctions and disjunctions are associative, commutative, and
17idempotent. Equality operands are commutative, while reversed inequalities
18are normalized by inverting their operator. Order-sensitive clauses and
19function arguments retain their original order.
20
21## Parameters
22
23### query
24
25[`QueryIR`](../@tanstack/namespaces/IR/interfaces/QueryIR.md)
26
27## Returns
28
29[`QueryIdentity`](../type-aliases/QueryIdentity.md)