apoc.meta.cypher.types
Syntax |
|
||
Description |
Returns a |
||
Arguments |
Name |
Type |
Description |
|
|
A relationship, node or map to get the property types from. |
|
Returns |
|
Usage Examples
Calling the function with a map input will return a map with the same keys, where the value of each key is the type of the value it had in the input map:
RETURN apoc.meta.cypher.types({
item1: 2,
item2: datetime(),
item3: "Michael"
}) AS output;
output |
---|
{item2: "DATE_TIME", item1: "INTEGER", item3: "STRING"} |
Calling the function with an empty map will return an empty map:
RETURN apoc.meta.cypher.types({}) AS output;
output |
---|
{} |
Calling the function with an input value that is not a map, will return an empty map:
RETURN apoc.meta.cypher.types(1) AS output;
output |
---|
{} |