DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/functions/getQueryIdentity.md
getQueryIdentity
ts
function getQueryIdentity(query): QueryIdentity;Defined in: packages/db/src/query/ir-stable-identity.ts:82
Returns the semantic identity of a structured query.
Logical conjunctions and disjunctions are associative, commutative, and idempotent. Equality operands are commutative, while reversed inequalities are normalized by inverting their operator. Order-sensitive clauses and function arguments retain their original order.