apoc.meta.cypher.types

Function

apoc.meta.cypher.type(value ANY) - returns the type name of the given value.

Signature

apoc.meta.cypher.types(properties :: ANY) :: MAP

Input parameters

Name Type Default

properties

ANY

null

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;
Table 1. Results
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;
Table 2. Results
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;
Table 3. Results
output

{}