Function: dependentsOf()
ts
function dependentsOf<TPartition>(topology, partitionId): readonly TPartition[];Defined in: topology/topology-queries.ts:21
Returns all strict transitive dependent partitions that depend (directly or indirectly) on partitionId.
Given db <- api <- web, dependentsOf(topology, 'db') returns ['api', 'web'] and dependentsOf(topology, 'web') returns [].
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TPartition extends string | string | Literal string union of partition identifiers in topology. |
Parameters
| Parameter | Type | Description |
|---|---|---|
topology | MaybeBuilder<TopologyNode<TPartition>> | Compiled TopologyNode or P.topology(...) builder. |
partitionId | TPartition | Source partition identifier to query. |
Returns
readonly TPartition[]
Frozen array of strict transitive dependent partition IDs.
Throws
If partitionId is not a declared partition in topology.