PHOENIX Paul Goldschmidt homered for the third straight game, Robbie Ray fanned 10 in 6 2/3 innings and the Arizona Diamondbacks held on to beat Los Angeles 6-4 on Wednesday night, sending the Dodgers to their first four-game losing streak of the season.