apoc.meta.cypher.isType

Function

apoc.meta.cypher.isType(value Any, type String) - returns true if the given value matches the given type.

Signature

apoc.meta.cypher.isType(value :: ANY?, type :: STRING?) :: (BOOLEAN?)

Input parameters

Name Type Default

value

ANY?

null

type

STRING?

null

Usage Examples

RETURN apoc.meta.cypher.isType(1, "NODE") AS output;
Table 1. Results
output

FALSE

RETURN apoc.meta.cypher.isType(datetime(), "DATE_TIME") AS output;
Table 2. Results
output

TRUE