Greater intake of the MEDI diet is associated with better cognitive trajectory in older adults with type 2 diabetes.