Cody Bellinger's throwing error in the eighth inning allowed the Giants to edge the Dodgers, 2-1, on Tuesday in San Francisco.