Values and types
The input and output to and from a procedure or a function must be one of the supported types, as described in Cypher Manual → Values and types.
Composite types are supported via:
-
List<T>
, whereT
is one of the supported types, and -
Map<String, Object>
, where the values in the map must have one of the supported types.
The use of Object
is supported for the case where the type is not known beforehand.
Note, however, that the actual value must still have one of the aforementioned types.
Cypher type | Java type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For more details, see the Neo4j Javadocs org.neo4j.procedure.Procedure
.
There are two cases where more than one Java type is mapped to a single Cypher type. When this happens, type information is lost. If the following objects are returned from procedures, the original types cannot be recreated:
|