apoc.convert.toInteger
Function APOC Core Deprecated
apoc.convert.toInteger(value) | tries it’s best to convert the value to an integer
Usage Examples
Convert string to integer
return apoc.convert.toInteger("1") AS output;| Output | 
|---|
| 1 | 
Convert float to integer
return apoc.convert.toInteger(1.2) AS output;| Output | 
|---|
| 1 | 
| This function has been deprecated and will be removed in version 5.0. The functionality is replaced by the Neo4j functions  | 
| Input | apoc.convert.toInteger() | toInteger() | toIntegerOrNull() | 
|---|---|---|---|
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | Error | 
 | 
| 
 | 
 | Error | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | Error | 
 | 
| Node | 
 | Error | 
 | 
| Relationship | 
 | Error | 
 | 
| Path  | 
 | Error | 
 |