Function toString()
returns the string value of any data.
Arguments:
- Any value <any>
Returns:
- String <string>
Sample graph: (to be used for the following examples)

create().node_schema("professor").node_schema("student")
create().node_property(@*, "age", int32).node_property(@*, "email", string)
insert().into(@professor).nodes([{_id:"P001",_uuid:1,age:53,email:"test@yahoo.cn"},{_id:"P002",_uuid:2,age:27,email:"test@ultipa.com"}])
insert().into(@student).nodes([{_id:"S001",_uuid:3,age:27,email:"test@yeah.net"},{_id:"S002",_uuid:4,age:20,email:"test@w3.org"},{_id:"S003",_uuid:5,age:25,email:"test@gmail.com"}])
Comman Usage
Exalmple: Convert number list to string
find().nodes({@student}) as n
with collect(n.age) as ageList
return toString(ageList)
[27,20,25]
Analysis: A list is converted to string and not able to call its element by index.
Exalmple: Convert NODE list to string
find().nodes({@student}) as n
with collect(n) as nodeList
return toString(nodeList)
[3,4,5]
Analysis: The NODE or EDGE passed in will be simplified as UUID before conversion.