# Target a dependency inside the graph Prerequisite: [flat overrides](../intermediate/overrides.md). The key in the `override` mapping expresses how to find a constructor socket below the melded root. | Form | Example | Match rule | | --- | --- | --- | | Exact path | `transport>credentials` | The named socket path | | Unique wildcard | `*credentials` | Exactly one matching socket | | Broadcast | `**credentials` | At least one matching socket; apply to all matches | The wildcard lesson exercises one match, multiple matches, no matches, and overlap. When a broadcast and exact path name the same socket, the exact path takes precedence. The complete example keeps its objects `many` so later melds construct clean graphs. ## Targeting and lifetime are separate decisions The deep-path lesson deliberately uses `unique`. Its override helps construct a singleton transport, and a later plain meld retrieves that same transport with the injected credentials still inside it. The substitution lasts as long as the object it helped create. It is not automatically limited to the duration of a call. Run both examples: the first demonstrates this lifetime consequence; the second demonstrates the match grammar and fresh-instance contrast. ## The workflow in code These are the core steps from the saved example. Use its complete linked script for all class definitions and setup. ```{literalinclude} ../downloads/03_advanced/19_wildcard_and_broadcast_overrides.py :language: python :pyobject: main :linenos: ``` ## Runnable examples - [Wildcard and broadcast overrides](../examples/advanced/19-wildcard-and-broadcast-overrides.md) — Advanced 19 - [Deep spell override paths](../examples/advanced/01-deep-spell-override-paths.md) — Advanced 01 - [Deep overrides paths through a graph](../examples/expert/10-deep-overrides-paths-through-a-graph.md) — Expert 10 [All advanced examples](../examples/advanced/index.md) · [Level contents](index.md) · [Full contents](../contents.md) [Canonical page source](https://github.com/Synaptic724/melder/blob/0895ce795453cd87e35d70665957b4e89aad3317/docs/advanced/overrides.md)