hello ,
I would like to model the following, s1 and s2 are related by a link and this link have 2 types:type1 and type2 and 2 fields :field1,field2
I tried to run this query
CREATE (s1)-[:LINKED_TO{Type:'type1',Field:'Field1'}]->(s2)
CREATE (s1)-[:LINKED_TO{Type:'type2',Field:'Field2'}]->(s2)
but the second one override the first one and i need to maintain this structure for the 2 types and the 2 fields . to explain more i want to have something like that
CREATE (s1)-[:LINKED_TO{Type:'type1',Field:'Field1'},{Type:'type2',Field:'Field2'}]->(s2)
and i may have several types and everal fields such as
CREATE (s1)-[:LINKED_TO{Type:'type1',Field:'Field1'},{Type:'type2',Field:'Field2'},......{Type:'typen',Field:'Fieldn}]->(s2)
so i decided to use a collection with a key, value but i don't know how to use it and can't find any useful reference. Help !
Regards