NEW YORK — Rookie Jacob deGrom struck out 11 in seven shutout innings and also delivered a table-setting hit from the No. 8 spot in the batting order as the New York Mets tagged All-Star Julio Teheran and the Atlanta Braves 8-3 Tuesday night.

Curtis Granderson kept up his resurgence with a leadoff home run and Lucas Duda doubled twice, singled and drew two walks. Daniel Murphy also doubled twice and third baseman David Wright added two of New York’s 18 hits and made a nifty catch.

The shaggy-haired deGrom (2-5) pitched the Mets to their third win in a row, and the franchise’s 4,000th victory since starting out as an expansion team in 1962.

Atlanta has lost three straight after winning nine.

DeGrom scattered seven hits, walked none and matched a career best for strikeouts.

His single led to a three-run burst in the second inning, and he exited as a 6-for-22 hitter in the majors, part of the reason manager Terry Collins felt comfortable in tweaking his lineup.

Teheran (8-6) gave up a career-high 11 hits after shutting down the Mets in his previous outing, part of a Braves’ sweep last week. He lasted just 3 1/3 innings, matching the shortest of his 53 starts in the majors.

Teheran was picked Sunday for his first NL All-Star team, but the 23-year-old righty was very hittable from the get-go. Collins noted before the game that the ball was flying during batting practice — Granderson proved him correct, lining Teheran’s second pitch off the facade of the second deck in right field.

Granderson, rebounding nicely from a slow start, hit his fourth home run in seven games. On Monday night, his tying homer in the eighth inning sent the Mets to an 11-inning win over Atlanta.

The shot also gave the Mets a home run in eight straight games at Citi Field, matching a team record for the stadium that opened in 2009.

The Mets led 5-0 in the third. Atlanta put runners at the corners with two outs in the sixth, but Wright made a diving, backhanded catch on Jason Heyward’s liner to end the inning.

Three Mets relievers closed out the win. They did it while winds whipped debris all over the field as a storm blew into the ballpark. Freddie Freeman hit a two-out, two-run single in the ninth.

NOTES: Granderson hit his third leadoff homer of the year and 27th of his career. ... Mets RHP Dillon Gee (strained right lat) comes off the disabled list to start tonight against RHP Ervin Santana. ... Teheran is set to start Sunday against the Cubs at Wrigley Field, meaning he won’t pitch in the All-Star game Tuesday at Minnesota. ... Andrelton Simmons went hitless for Atlanta. He had six straight multihit games coming in. ... The Houston Astros, who also began play in 1962, started the day with 4,087 wins. ... This was the sixth time — all in the last month — that Collins has batted his pitcher eighth. DeGrom was the first pitcher to get a hit in that slot. Collins hit Eric Young Jr. in the ninth spot, saying it created a double leadoff position.

*We welcome your comments on the stories and issues of the day and seek to provide a forum for the community to voice opinions. All comments are subject to moderator approval before being made visible on the website but are not edited. The use of profanity, obscene and vulgar language, hate speech, and racial slurs is strictly prohibited. Advertisements, promotions, spam, and links to outside websites will also be rejected. Please read our terms of service for full guides