@sqlrooms/mosaic / UseMosaicClientOptions
Type Alias: UseMosaicClientOptions<T>
UseMosaicClientOptions<
T> =object
Type Parameters
| Type Parameter | Default type |
|---|---|
T | unknown |
Properties
id?
optionalid:string
Unique id for this client (auto-generated if not provided)
selectionName?
optionalselectionName:string
Selection name for cross-filtering (will create if doesn't exist)
selection?
optionalselection:Selection
Or pass a Selection directly
query()
query: (
filter) =>ReturnType<typeoffrom>
Query builder - receives current filter predicate
Parameters
| Parameter | Type |
|---|---|
filter | unknown |
Returns
ReturnType<typeof from>
queryResult()?
optionalqueryResult: (result) =>void
Callback when query results are received
Parameters
| Parameter | Type |
|---|---|
result | T |
Returns
void
enabled?
optionalenabled:boolean
Whether to automatically connect when mosaic is ready
