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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -