Rapid Reaction: Mets 5, Giants 4

NEW YORK -- Hey, they'll take it.

After an intentional walk to Lucas Duda, Michael Cuddyer delivered a two-out single in the bottom of the ninth to plate Curtis Granderson and lift the New York Mets to a 5-4 walk-off win against the San Francisco Giants on Thursday at Citi Field.

Granderson reached base after being plunked by a pitch from Sergio Romo and advanced to second on a passed ball.

The Mets (32-29) avoided the first Giants sweep in Queens since 2002.

Still, it was an ugly series for the Amazin’s. Rookie Chris Heston no-hit the Mets in the opener. Matt Harvey surrendered a career-high-matching seven runs the following day.

The Mets had evened the score at 4 in the seventh. Pinch hitter Darrell Ceciliani opened the bottom of the frame with a double against Hunter Strickland. Granderson then plated Ceciliani with a single.

Sinking feeling: Jonathon Niese had retired 12 straight batters. Then third baseman Eric Campbell committed a two-out error in the sixth. And Brandon Crawford followed with a two-run homer. Suddenly, the Mets’ one-run lead had turned into a 4-3 deficit.

Niese did not allow a hit after the second inning other than Crawford’s homer. He ultimately was charged with four runs (two earned) on five hits and two walks in seven innings in a no-decision.

Manager Terry Collins previously has lamented Niese’s propensity for failing to pick up teammates after fielding letdowns behind him.

Freaky Thursday: The Mets did not muster a hit against Giants starter Tim Lincecum until Travis d’Arnaud dunked an RBI single into right field with two outs in the fourth.

An inning later, Niese doubled for the second hit against Lincecum. Duda produced a game-tying sacrifice fly. And Cuddyer followed with an RBI double for a 3-2 lead. Cuddyer’s shot knocked out Lincecum, who threw 102 pitches in 4 2/3 innings.

Welcome back: Dilson Herrera went 0-for-3 with a walk in his return to the majors. Herrera had landed on the disabled list on May 15 after fracturing the tip of his right middle finger during a pregame fielding drill.

Walk in the park: Wilmer Flores snapped a streak of 110 plate appearances without a walk with a second-inning base on balls. The drought was the longest by a Met since Jose Reyes went 146 plate appearances spanning the 2004 and ’05 seasons, according to the Elias Sports Bureau.

What’s next: The Atlanta Braves visit Citi Field. Bartolo Colon (8-4, 4.52 ERA) opposes left-hander Alex Wood (4-3, 3.36) in Friday’s 7:10 p.m. ET series opener.