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/@tanstack/namespaces/IR/functions/getHavingExpression.md
getHavingExpression
ts
function getHavingExpression(having):
| BasicExpression<any>
| Aggregate<any>;Defined in: packages/db/src/query/ir.ts:424
Extract the expression from a HAVING clause HAVING clauses can contain aggregates, unlike regular WHERE clauses
Parameters#
having#
Returns#
| BasicExpression<any> | Aggregate<any>