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/classes/ConditionalSelect.md
ConditionalSelect
Defined in: packages/db/src/query/ir.ts:313
Extends#
- BaseExpression
Constructors#
Constructor#
ts
new ConditionalSelect(branches, defaultValue?): ConditionalSelect;Defined in: packages/db/src/query/ir.ts:315
Parameters#
branches#
defaultValue?#
Returns#
ConditionalSelect
Overrides#
ts
BaseExpression.constructorProperties#
__returnType#
ts
readonly __returnType: any;Defined in: packages/db/src/query/ir.ts:88
Internal
- Type brand for TypeScript inference
Inherited from#
ts
BaseExpression.__returnTypebranches#
ts
branches: ConditionalSelectBranch[];Defined in: packages/db/src/query/ir.ts:316
defaultValue?#
ts
optional defaultValue: SelectValueExpression;Defined in: packages/db/src/query/ir.ts:317
type#
ts
type: "conditionalSelect";Defined in: packages/db/src/query/ir.ts:314
Overrides#
ts
BaseExpression.type