Hi,
I'm new to neo4j and I'm learning. my question may seem very basic and simple for some people but after extensive research, I did not find a solution to my problem.
I'm trying to import data from JSON file and creating the nodes but i don't know how we can do the aggregation when we are trying to create the nodes. I have 3 fields as follows in my source:
id_station id_pdc nb_place
id1 id11 1
id1 id12 1
id1 id13 1
id2 id21 1
id2 id22 1
id3 id31 1
And I would like to aggregate the number of places (nb_place) per station, and create the 3 "Station" nodes with the "Nb place" property as follows:
id_station nb_place
id1 3
id2 2
id3 1
Thank you for your help and suggestion.