@sqlrooms/mosaic / MosaicClientOptions
Type Alias: MosaicClientOptions<T>
MosaicClientOptions<
T> =object
Type Parameters
| Type Parameter | Default type |
|---|---|
T | unknown |
Properties
id?
optionalid:string
Unique identifier for this client
selectionName?
optionalselectionName:string
Selection name for cross-filtering (will create if doesn't exist)
selection?
optionalselection:Selection
The selection to subscribe to for cross-filtering
query()
query: (
filter) =>ReturnType<typeoffrom>
Query builder function that receives the current filter
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
