{"action":"opened","issue":{"url":"https://api.github.com/repos/ospaarmann/exdgraph/issues/11","repository_url":"https://api.github.com/repos/ospaarmann/exdgraph","labels_url":"https://api.github.com/repos/ospaarmann/exdgraph/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/ospaarmann/exdgraph/issues/11/comments","events_url":"https://api.github.com/repos/ospaarmann/exdgraph/issues/11/events","html_url":"https://github.com/ospaarmann/exdgraph/issues/11","id":307854304,"number":11,"title":"Linking a node to multiple other nodes of the same type in one transaction","user":{"login":"Errol-Hassall","id":19931170,"avatar_url":"https://avatars3.githubusercontent.com/u/19931170?v=4","gravatar_id":"","url":"https://api.github.com/users/Errol-Hassall","html_url":"https://github.com/Errol-Hassall","followers_url":"https://api.github.com/users/Errol-Hassall/followers","following_url":"https://api.github.com/users/Errol-Hassall/following{/other_user}","gists_url":"https://api.github.com/users/Errol-Hassall/gists{/gist_id}","starred_url":"https://api.github.com/users/Errol-Hassall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Errol-Hassall/subscriptions","organizations_url":"https://api.github.com/users/Errol-Hassall/orgs","repos_url":"https://api.github.com/users/Errol-Hassall/repos","events_url":"https://api.github.com/users/Errol-Hassall/events{/privacy}","received_events_url":"https://api.github.com/users/Errol-Hassall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-22T23:50:57Z","updated_at":"2018-03-22T23:50:57Z","closed_at":null,"author_association":"NONE","body":"I have a database of people off those people I have a year node that will contain all the friendships they have. Using the map notation I can link the year node to a pre-exisiting person using the uid. But when it comes time to link them to multiple people it doesnt work. It will take what ever the second friend is and link them to that, overriding the first one. \r\n`map = %{\r\n      uid: \"0x#{attrs[:person_id]}\",\r\n      person_id: \"#{attrs[:person_id]}\",\r\n      name:  \"#{attrs[:person_id]}\",\r\n      type: \"person\",\r\n      \r\n      year: %{\r\n        name: \"#{year}\",\r\n        friends: %{\r\n          uid: \"0x#{attrs[:friend1]}\",\r\n        },\r\n        friends: %{\r\n          uid: \"0x#{attrs[:friend2]}\",\r\n        },\r\n      },\r\n    }`\r\nThis will link the node to friend2 but not friend1 and if I then add a third friend it will add it to friend3. \r\nThe end result would be person has edges from the year to 6 different friends.\r\nUsing this map notation is it possible to add multiple edges two the same type of node at once?"}}
{"actor":{"display_login":"Errol-Hassall"}}