Chapman struck out in his lone at-bat of the night in the second inning and had two assists in the infield.
Ryon Healy moved from first base to third base to replace Chapman, while Matt Olson entered the game in Chapman's spot in the batting order and took over at first base.
Melvin hopes Chapman will be fine for Friday's game and added, "He didn't want to come out of the game, as you would expect."
Alex Simon is a reporter for MLB.com based in the Bay Area. Follow him on Twitter at @alexsimon99. This story was not subject to the approval of Major League Baseball or its clubs.