apoc.meta.cypher.types
Function
apoc.meta.cypher.type(value Any)
- returns the type name of the given value.
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 |
---|
{} |
Was this page helpful?