W: J. deGrom (5-5) L: J. Nelson (1-2) S: J. Mejia (15)
HR: NYM - L. Duda (18) MIL - None
Recap:Closer Jenrry Mejia extended his arms in front of him and kneeled quickly as he let out a yell with the final out secured in first baseman Lucas Duda's glove.
A 2-0 victory Sunday over the Milwaukee Brewers allowed the New York Mets to head home after the All-Star break, happy with a 5-5 record on its grueling 10-game road trip.
Duda hit a two-run homer and rookie Jacob deGrom pitched well into the seventh to allow the Mets to split a four-game series with the NL Central-leading Brewers.
With the non-waiver trade deadline looming Thursday, the Mets are five games under .500 overall at 50-55 and 6 1/2 games back in the wild card race.
Duda sent an 0-2 slider in the sixth from rookie Jimmy Nelson (1-2) into the second deck above right field to break a scoreless pitcher's duel. It was Duda's third homer in four days in Milwaukee.
Overall, Duda finished with four homers and seven RBIs on the road.
The Brewers mounted a ninth-inning rally against Mejia with two outs after Jean Segura's single put runners on first and second. Mejia got Lyle Overbay to ground out for his 15th save.
DeGrom (5-5) held the Brewers to four hits and two walks, exiting with one out in the seventh after allowing two singles. Reliever Vic Black got out of that jam.
DeGrom had location and life on a fastball that peaked in the mid-90s, Brewers manager Ron Roenicke said.
The closest thing to a rally came in the ninth after Khris Davis reached first on an infield single with one out. The play stood following a replay review.
Mejia got Mark Reynolds to strike out before Segura singled to put the tying run on base. After Overbay grounded out, Mejia savored the save with his animated celebration.
The rookie starters matched scoreless innings early. Nelson allowed four doubles and got into a little trouble in missing high with his sinker, but finished with six strikeouts in seven innings. He was also helped by three double plays.
But that one slider he left up to Duda proved to be the difference. At least Nelson got to smile after singling up the middle in the third for his first career hit in 66 at-bats as a professional, dating back to the minor leagues.
DeGrom won his fourth straight start, each time getting into the seventh. The most worrisome pitch for the righty came when Reynolds hit a towering fly ball to left that appeared to hit the heavy wires that support Miller Park's retractable roof.
The ball caromed back into fair territory, and Davis, at first, was racing around third when he was held up after the umpires ruled the play foul. DeGrom then struck out Reynolds looking.
The right-hander with curly brown hair flowing out from under his blue cap had hitters swinging through fastballs that peaked in the mid-90s. He finished with four strikeouts and lowered his ERA to 2.81.
NOTES: The Mets improved to 22-13 in day games. ... 3B Aramis Ramirez, who was 2 for 24 on the seven-game homestand, had a day off before popping out in the seventh as a pinch hitter. ... Manager Ron Roenicke indicated 2B Scooter Gennett could return to action full time when the Brewers open a three-game series Monday in Tampa ... Bartolo Colon (9-8) starts when the Mets return to the Citi Field for the first time since the All-Star break to play the Phillies on Monday. ... Kyle Lohse (11-4) opens the three-game series against the Rays for Milwaukee.