I have :Person nodes that have a dateOfBirth property. I need to filter out these nodes by an age range
In my mind, I'm envisioning something like:
MATCH (n:Person) WHERE getAge(n.dateOfBirth) >= 30 AND getAge(n.dateOfBirth) <= 50 RETURN n
Is this possible? I've seen where there are models drawn up that have an "Age" property instead. I'm not a fan of that due to the requirement to scan the database for birthdays and update the age on a daily basis.