@@ -4,14 +4,13 @@ import graphql.language.Field
44import graphql.language.ObjectValue
55import graphql.schema.GraphQLFieldDefinition
66import graphql.schema.GraphQLFieldsContainer
7- import java.time.*
8- import java.time.temporal.Temporal
97
108const val NEO4j_FORMATTED_PROPERTY_KEY = " formatted"
9+ const val NEO4j_POINT_DISTANCE_FILTER = " _Neo4jPointDistanceFilter"
10+ const val NEO4j_POINT_DISTANCE_FILTER_SUFFIX = " _distance"
1111
1212data class TypeDefinition (
1313 val name : String ,
14- val type : Class <out Temporal >,
1514 val typeDefinition : String ,
1615 val inputDefinition : String = typeDefinition + " Input"
1716)
@@ -75,9 +74,10 @@ data class Neo4jQueryConversion(val name: String, val propertyName: String, val
7574}
7675
7776val neo4jTypeDefinitions = listOf (
78- TypeDefinition (" LocalTime" , OffsetTime ::class .java, " _Neo4jTime" ),
79- TypeDefinition (" Date" , LocalDate ::class .java, " _Neo4jDate" ),
80- TypeDefinition (" DateTime" , LocalDateTime ::class .java, " _Neo4jDateTime" ),
81- TypeDefinition (" Time" , Instant ::class .java, " _Neo4jLocalTime" ),
82- TypeDefinition (" LocalDateTime" , OffsetDateTime ::class .java, " _Neo4jLocalDateTime" )
77+ TypeDefinition (" LocalTime" , " _Neo4jTime" ),
78+ TypeDefinition (" Date" , " _Neo4jDate" ),
79+ TypeDefinition (" DateTime" , " _Neo4jDateTime" ),
80+ TypeDefinition (" Time" , " _Neo4jLocalTime" ),
81+ TypeDefinition (" LocalDateTime" , " _Neo4jLocalDateTime" ),
82+ TypeDefinition (" Point" , " _Neo4jPoint" )
8383)
0 commit comments