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