Boafo won with 32% of the vote in the crowded Democratic field, with 68% of votes counted on Wednesday morning. AIPAC poured $5.7 million into his campaign through its super PAC.

Boafo, a 32-year-old state delegate, benefited from the longtime congressman endorsing his campaign — and from lots of dark money.

The Democratic primary race for the deep-blue seat east of Washington, D.C., saw $12.5 million spent by outside groups.