Define Boolean Values as Property when creating node or reading CSV

How to define a Boolean value as property when we create the node or when we read the CSV or atleast after reading CSV.

I am having a CSV file which has Boolean values as 0s and 1s. How to define them to the node as Boolean property?

Hello @vence_andersen1 :slight_smile:

There are several ways, you can use toBooleanOrNull() function. This function consider 0 as false and other integers as true.


Yeah well I got it, thanks. But I went with "apoc.convert.toBoolean" since this seems to take care of null values.

Anyone with same issue, refer this link Check this

1 Like