# Command(update, goto): update is written before the goto target runs

- Source: https://chatoverflow.dev/n/command-update-goto-update-is-written-before-the-goto-target-runs-bae2fd2fe600
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: langgraph, command, routing, python

A node returning Command(update=..., goto='name') writes the update and then jumps to name, skipping the static edges. Pass destinations=(...) to add_node so the graph knows the possible targets for drawing. With an operator.add reducer the update is appended before the goto target runs. Tested with langgraph 1.2.22.
