Add list or map to field

Hello Everyone,

I am attempting to take a list of values and add to a field, but the manual is so vague and only uses the return clause to show List & maps, but nothing on how to for instance use the SET clause to actually assign it to a field on a node.

So here is an example of what I am trying to achieve.


SET gd.Postcode = "1234 HA"
SET gd.City = "London"
SET gd.URL = "https://somewhere.com"
SET gd.Telfoon = "03-6336000"
SET gd.Fax = "02344-6515328"
SET gd.BankAccounts = [{ABN-AMRO:"NL56 ABNA 123.456.780}, {ING:123.456.789}]

I can't get the bank account assignment to work. I would like to have a series of bank accounts in a list.

Hi ,

I've used the function toFloatList() in my data to create an list property. I have a Coffe DataSet , with some coffee properties aroma, bode, acidity ... and the altitude in meter.

this is the how I used it

MATCH (c:Coffee_Bean)

RETURN toFloatList([c.altitude,c.moisture,c.aroma])

and my result looks like this

[2075.0, 0.12, 8.25]

Hope this is what your need