How do I construct a query that returns the data type of a property value?


(Snellad1) #1

Hi,

I would like to create a query that returns a table with the following that have been unwound:

  1. node label, 2. property, 3. property value, 4. property value data type

Currently my model contains the following data types: string, integer, float, boolean.

Thank you.


(Bratanic Tomaz) #2

I think you need APOC to help you here, specifically ```
apoc.meta.type()

MATCH (n)
RETURN apoc.meta.type(n.property)