{"action":"created","issue":{"url":"https://api.github.com/repos/technige/py2neo/issues/600","repository_url":"https://api.github.com/repos/technige/py2neo","labels_url":"https://api.github.com/repos/technige/py2neo/issues/600/labels{/name}","comments_url":"https://api.github.com/repos/technige/py2neo/issues/600/comments","events_url":"https://api.github.com/repos/technige/py2neo/issues/600/events","html_url":"https://github.com/technige/py2neo/issues/600","id":200848433,"node_id":"MDU6SXNzdWUyMDA4NDg0MzM=","number":600,"title":"OGM Feature: Relationship properties in class definition","user":{"login":"dan-kez","id":6778796,"node_id":"MDQ6VXNlcjY3Nzg3OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/6778796?v=4","gravatar_id":"","url":"https://api.github.com/users/dan-kez","html_url":"https://github.com/dan-kez","followers_url":"https://api.github.com/users/dan-kez/followers","following_url":"https://api.github.com/users/dan-kez/following{/other_user}","gists_url":"https://api.github.com/users/dan-kez/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-kez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-kez/subscriptions","organizations_url":"https://api.github.com/users/dan-kez/orgs","repos_url":"https://api.github.com/users/dan-kez/repos","events_url":"https://api.github.com/users/dan-kez/events{/privacy}","received_events_url":"https://api.github.com/users/dan-kez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-15T04:46:28Z","updated_at":"2018-11-22T10:50:58Z","closed_at":null,"author_association":"NONE","body":"At present you can add relationship properties to an OGM GraphObject when calling `node.rel_set.add(node, {obj})`. This is very useful, however it would be very nice if it was possible to predefine what properties are required for a given relationship on instantiation.\r\n\r\nSee the example below\r\n```\r\nclass Movie(GraphObject):\r\n    name = Property()\r\n    actors = RelatedFrom(Actor, ActedIn)\r\n\r\nclass Actor(GraphObject):\r\n    acted_in_movies = RelatedTo(Movie, ActedIn)\r\n\r\nclass ActedIn(GraphRelationship):\r\n   year = Property()\r\n```"},"comment":{"url":"https://api.github.com/repos/technige/py2neo/issues/comments/440991561","html_url":"https://github.com/technige/py2neo/issues/600#issuecomment-440991561","issue_url":"https://api.github.com/repos/technige/py2neo/issues/600","id":440991561,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDk5MTU2MQ==","user":{"login":"shubhamyedage","id":18259468,"node_id":"MDQ6VXNlcjE4MjU5NDY4","avatar_url":"https://avatars0.githubusercontent.com/u/18259468?v=4","gravatar_id":"","url":"https://api.github.com/users/shubhamyedage","html_url":"https://github.com/shubhamyedage","followers_url":"https://api.github.com/users/shubhamyedage/followers","following_url":"https://api.github.com/users/shubhamyedage/following{/other_user}","gists_url":"https://api.github.com/users/shubhamyedage/gists{/gist_id}","starred_url":"https://api.github.com/users/shubhamyedage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shubhamyedage/subscriptions","organizations_url":"https://api.github.com/users/shubhamyedage/orgs","repos_url":"https://api.github.com/users/shubhamyedage/repos","events_url":"https://api.github.com/users/shubhamyedage/events{/privacy}","received_events_url":"https://api.github.com/users/shubhamyedage/received_events","type":"User","site_admin":false},"created_at":"2018-11-22T10:50:58Z","updated_at":"2018-11-22T10:50:58Z","author_association":"NONE","body":"Hii, How you connect two nodes?"}}
{"actor":{"display_login":"shubhamyedage"}}