Storing current day, month, year as properties in a relation in neo4j using cypher query -
i want create relationship in neo4j having properties day, time, year of current date.
how can current day,month, year using cypher neo4j??
first, neo4j doesn't have support datetime type.
data
create (n1:node)-[r:relationship {day: 30, month: 9, year: 2015}]->(n2:node)
read
match (:node)-[r:relationship]->(:node) return r.day, r.month, r.year
another approach use graphaware timetree. neo4j module representing time in neo4j tree structure.
Comments
Post a Comment