apoc.meta.cypher.isType

Function APOC Core

apoc.meta.cypher.isType(value,type) - returns a row if type name matches none if not (INTEGER,FLOAT,STRING,BOOLEAN,RELATIONSHIP,NODE,PATH,NULL,MAP,LIST OF <TYPE>,POINT,DATE,DATE_TIME,LOCAL_TIME,LOCAL_DATE_TIME,TIME,DURATION)

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