›The Neo4j Type System
2.4 · Lesson
The Neo4j Type System
At this point, you need to know the iFull definition for Cypher (opens in a new tab)Neo4j's implementation of GQL, the ISO standard query language for graph databases. It is declarative: you describe the pattern to find, and the database decides how to find it. type system to map database entities to domain entities. As Neo4j is written in Java (the j in Neo4j stands for Java, after all), there are only minor discrepancies between the types stored in the Neo4j database and native Java types.
| Java Type | Neo4j Cypher Type | Notes |
|---|---|---|
String | String | |
Long* | Integer | See Integers |
Double | Float | Double in Java can contain the smaller Float values, so Neo4j Float is mapped to the larger Java Double. |
Boolean | Boolean | |
List | List | Neo4j can only store a flat array containing strings, booleans, or numbers. |
Map | Map | |
Object | Object | |
java.time. LocalDate | Date | |
java.time. OffsetTime | Time | |
java.time. LocalTime | LocalTime | |
java.time. ZonedDateTime | DateTime | See Temporal Types |
java.time. LocalDateTime | LocalDateTime | |
java.time.temporal. TemporalAmount | Duration | See Temporal Types |
org.neo4j. driver.types. Point | Point | See Spatial Types |
null, null | null |
Join GraphAcademy to keep learning
Create your account to unlock 80+ hours of hands-on Neo4j courses, track your progress, and earn a certificate when you complete the course.
Sign in or register