apoc.meta.cypher.isType

Details

Syntax

apoc.meta.cypher.isType(value, type)

Description

Returns true if the given value matches the given type.

Arguments

Name

Type

Description

value

ANY

An object to check the type of.

type

STRING

The verification type.

Returns

BOOLEAN

Usage Examples

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

FALSE

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

TRUE