Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-25-2021 11:47 PM
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?
Solved! Go to Solution.
07-26-2021 12:07 AM
Hello @vence.andersen17
There are several ways, you can use toBooleanOrNull() function. This function consider 0
as false
and other integers as true
.
Regards,
Cobra
07-26-2021 12:07 AM
Hello @vence.andersen17
There are several ways, you can use toBooleanOrNull() function. This function consider 0
as false
and other integers as true
.
Regards,
Cobra
07-26-2021 12:36 AM
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
All the sessions of the conference are now available online