In conclusion, in patients with recently diagnosed T2D, using RRR analysis, we identified dietary patterns, which are independently associated with serum lipid levels and modified by ApoA5 and ApoE haplotype. Here, APOA5 is linked to type 2 diabetes mellitus.