channelsOf() function
Retrieves table names as channels from the given model and filter them by a given fields map, if passed. Returns result as list of table names.
Signature:
export declare function channelsOf(model: typeof Model, fields?: any, tables?: string[]): string[];
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
model |
typeof Model |
sequelize-style model whose table name and associations are read to derive the channels |
|
fields |
any |
(Optional) fields the cached method depends on; an association field pulls in that association's table as well |
|
tables |
string[] |
(Optional) extra table names to watch that the model does not reach |
Returns:
string[]
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.