No mediating effect of BMI on the association of ApoA1-T2D and ApoB/A1–T2D was found. Here, APOB is linked to type 2 diabetes mellitus.