Chris Pappas, a member of New Hampshire’s executive council, has won the Democratic nomination for the state’s swing 1st District, defeating a better-funded candidate who only recently moved to there.

He starts the general election to succeed retiring Democratic Rep. Carol Shea-Porter as the slight favorite against Republican former police chief Eddie Edwards. In a contest of firsts, Pappas would be the first openly gay representative from the Granite State, while Edwards would be the state’s first African-American member of Congress.

With 84 percent of precincts reporting, Pappas led an 11-way Democratic field with 42 percent of the vote, according to The Associated Press. Marine veteran Maura Sullivan was second with 30 percent. Levi Sanders, the son of Vermont Sen. Bernie Sanders, trailed in seventh place with 2 percent. He didn’t have his father’s endorsement, struggled to raise money and didn’t live in the district.

On the GOP side, with 84 percent of precincts reporting, Edwards led a five-way field with 48 percent of the vote, according to the AP. State Sen. Andy Sanborn was in second place with 41 percent.

The 1st District is one of the GOP’s few pickup opportunities this year. President Donald Trump carried it by 2 points in 2016. Inside Elections with Nathan L. Gonzales rates the general election Tilts Democratic.