{"action":"created","issue":{"url":"https://api.github.com/repos/ra0o0f/arangoclient.net/issues/62","repository_url":"https://api.github.com/repos/ra0o0f/arangoclient.net","labels_url":"https://api.github.com/repos/ra0o0f/arangoclient.net/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/ra0o0f/arangoclient.net/issues/62/comments","events_url":"https://api.github.com/repos/ra0o0f/arangoclient.net/issues/62/events","html_url":"https://github.com/ra0o0f/arangoclient.net/issues/62","id":196059833,"number":62,"title":"Inheritance","user":{"login":"francnuec","id":2047810,"avatar_url":"https://avatars.githubusercontent.com/u/2047810?v=3","gravatar_id":"","url":"https://api.github.com/users/francnuec","html_url":"https://github.com/francnuec","followers_url":"https://api.github.com/users/francnuec/followers","following_url":"https://api.github.com/users/francnuec/following{/other_user}","gists_url":"https://api.github.com/users/francnuec/gists{/gist_id}","starred_url":"https://api.github.com/users/francnuec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francnuec/subscriptions","organizations_url":"https://api.github.com/users/francnuec/orgs","repos_url":"https://api.github.com/users/francnuec/repos","events_url":"https://api.github.com/users/francnuec/events{/privacy}","received_events_url":"https://api.github.com/users/francnuec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-16T13:31:36Z","updated_at":"2016-12-16T19:35:42Z","closed_at":null,"body":"How does one handle the inheritance and/or polymorphism and/or abstraction problems?\r\n\r\nI hear you can use edges, but wouldn't that have problems during queries? A human that is a friend of another human is also basically two animals being friends. If the friendship edge is on the animal collection, but I only want to find humans that are friends, won't I run into problems?\r\n\r\nPlease help."},"comment":{"url":"https://api.github.com/repos/ra0o0f/arangoclient.net/issues/comments/267677730","html_url":"https://github.com/ra0o0f/arangoclient.net/issues/62#issuecomment-267677730","issue_url":"https://api.github.com/repos/ra0o0f/arangoclient.net/issues/62","id":267677730,"user":{"login":"actias","id":2928777,"avatar_url":"https://avatars.githubusercontent.com/u/2928777?v=3","gravatar_id":"","url":"https://api.github.com/users/actias","html_url":"https://github.com/actias","followers_url":"https://api.github.com/users/actias/followers","following_url":"https://api.github.com/users/actias/following{/other_user}","gists_url":"https://api.github.com/users/actias/gists{/gist_id}","starred_url":"https://api.github.com/users/actias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actias/subscriptions","organizations_url":"https://api.github.com/users/actias/orgs","repos_url":"https://api.github.com/users/actias/repos","events_url":"https://api.github.com/users/actias/events{/privacy}","received_events_url":"https://api.github.com/users/actias/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T19:35:41Z","updated_at":"2016-12-16T19:35:41Z","body":"Effectively, I believe, you're querying on the collection name. So when you create your collection, I'd make it based on the lowest level of abstraction. So if you're base class is \"Animals\" then your collection is animals and when you query, you would return all animals of type Human (which inherits or implements Animal) and pull them in the an ICollection<Human>.\n\n\nAlso, edges are the connective tissue, not collections in and of them selves. Use edges to describe the relationships between your collections (Animals in this case). So you would have a collection of \"Animals\" and maybe and edge called \"Relationships\"\n\n________________________________\nFrom: francnuec <notifications@github.com>\nSent: Friday, December 16, 2016 5:31:36 AM\nTo: ra0o0f/arangoclient.net\nCc: Subscribed\nSubject: [ra0o0f/arangoclient.net] Inheritance (#62)\n\n\nHow does one handle the inheritance and/or polymorphism and/or abstraction problems?\n\nI hear you can use edges, but wouldn't that have problems during queries? A human that is a friend of another human is also basically two animals being friends. If the friendship edge is on the animal collection, but I only want to find humans that are friends, won't I run into problems?\n\nPlease help.\n\n-\nYou are receiving this because you are subscribed to this thread.\nReply to this email directly, view it on GitHub<https://github.com/ra0o0f/arangoclient.net/issues/62>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACywicltKG6xu21i3xra4ON1VPaI9XWQks5rIpK4gaJpZM4LPMAr>.\n"}}
{"actor":{"display_login":"actias"}}