I have vertex "project" with properties "name" and "createdDate". I want to dynamically filter the projects to only show those that were created in the last two days, by "name", without having to hardcode the date into the filter. Is this possible?
I have this so far, which is not giving me an error but not producing results:
g.V().hasLabel('project').has('createdDate',gt('{LocalTime.Now()}'-2))
If I try this, I see all results but I want to filter by date:
g.V().hasLabel('project').has('createdDate',lt('{LocalTime.Now()}'))