apoc.convert.toBoolean
Function APOC Core Deprecated
apoc.convert.toBoolean(value) | tries it’s best to convert the value to a boolean
Usage Examples
RETURN apoc.convert.toBoolean(1) AS output;| Output | 
|---|
| true | 
RETURN apoc.convert.toBoolean(0) AS output;| Output | 
|---|
| false | 
| This function has been deprecated and will be removed in version 5.0. The functionality is replaced by the Neo4j functions  | 
| Input | apoc.convert.toBoolean | toBoolean() | toBooleanOrNull() | 
|---|---|---|---|
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | Error | 
 | 
| 
 | true | Error | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | Error | 
 | 
| 
 | 
 | Error | 
 | 
| Node [3] | 
 | Error | 
 | 
| Relationship [3] | 
 | Error | 
 | 
| Path  | 
 | Error | 
 |