apoc.convert.toString
Function APOC Core Deprecated
apoc.convert.toString(value) | tries it’s best to convert the value to a string
Usage Examples
RETURN apoc.convert.toString(1) AS output;
| Output |
|---|
"1" |
RETURN apoc.convert.toString(true) AS output;
| Output |
|---|
"true" |
RETURN apoc.convert.toString({key: "value"}) AS output;
| Output |
|---|
"{key=value}" |
|
This function has been deprecated and will be removed in version 5.0. The functionality is replaced by the Neo4j functions |
| Input | apoc.convert.toString() |
toString() |
toStringOrNull() |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Error |
|
|
|
Error |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Node [1] |
|
Error |
|
Relationship [1] |
|
Error |
|
Path |
|
Error |
|