Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-25-2019 12:50 PM
I have installed TimeTree successfully and used default parameters to create a time tree using Cypher.
But when I run either of these commands I get an error because Day and Hour are not recognized.
CALL ga.timetree.range({start: datetime("2018-01-01T00:00:01").epochMillis, end: datetime("2018-12-31T23:59:59").epochMillis, create: true, resolution: Day})
CALL ga.timetree.range({start: datetime("2018-01-01T00:00:01").epochMillis, end: datetime("2018-12-31T23:59:59").epochMillis, create: true, resolution: Hour})
The error I get is
Neo.ClientError.Statement.SyntaxError: Variable `Day` not defined (line 1, column 153 (offset: 152))
"CALL ga.timetree.range({start: datetime("2018-01-01T00:00:01").epochMillis, end: datetime("2018-12-31T23:59:59").epochMillis, create: true, resolution: Day})"
On GitHub the documentation states
`resolution` , which can take on the following values:
* `Year`
* `Month`
* `Day`
* `Hour`
* `Minute`
* `Second`
* `Millisecond`
Does this mean I need the quotes? Haven't tried that.
09-25-2019 01:00 PM
Yes, these are string values so you need quotes, otherwise it would attempt to interpret that as a variable, and you don't have those variables defined.
All the sessions of the conference are now available online