The development of dementia was influenced by APOE4 allele (HR = 1.90; P = 0.03) and GBA deleterious variants (HR = 2.44; P = 0.01). Here, APOE is linked to dementia.