Associations between cognitive performance and Mediterranean dietary pattern in patients with type 1 or type 2 diabetes mellitus