Cody Bellinger's RBI fielder's choice in the first gave the Dodgers a 1-0 lead, ending the D-backs' streak of 97 consecutive innings without trailing. Arizona answered back with Taijuan Walker's RBI double in the second, then took a 3-1 lead with a two-run seventh, ignited by Adam Rosales' pinch-hit RBI double.
Walker (9-7) won for the third straight start, allowing one run on four hits over six innings and striking out four.
Dodgers starter Kenta Maeda threw five innings of one-run ball, tying his season high with eight strikeouts, a much better outing than his start against the D-backs last Thursday, when he allowed seven runs in three innings.