* Computes a composite routing key from correlation key and parent context. * When parentContext is null (no parent filters), returns the raw correlationKey * for zero behavioral change on existing queries.
( correlationKey: unknown, parentContext: Record<string, any> | null, )
| 1797 | * for zero behavioral change on existing queries. |
| 1798 | */ |
| 1799 | function computeRoutingKey( |
| 1800 | correlationKey: unknown, |
| 1801 | parentContext: Record<string, any> | null, |
| 1802 | ): unknown { |
| 1803 | if (parentContext == null) return correlationKey |
| 1804 | return JSON.stringify([correlationKey, parentContext]) |
| 1805 | } |
| 1806 | |
| 1807 | /** |
| 1808 | * Creates a child Collection entry for includes subqueries. |
no outgoing calls
no test coverage detected