{"action":"created","issue":{"url":"https://api.github.com/repos/edlich/clarango/issues/15","labels_url":"https://api.github.com/repos/edlich/clarango/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/edlich/clarango/issues/15/comments","events_url":"https://api.github.com/repos/edlich/clarango/issues/15/events","html_url":"https://github.com/edlich/clarango/issues/15","id":97911582,"number":15,"title":"clarango.graph does not support multi collection graphs","user":{"login":"mikeholmesuk","id":4040917,"avatar_url":"https://avatars.githubusercontent.com/u/4040917?v=3","gravatar_id":"","url":"https://api.github.com/users/mikeholmesuk","html_url":"https://github.com/mikeholmesuk","followers_url":"https://api.github.com/users/mikeholmesuk/followers","following_url":"https://api.github.com/users/mikeholmesuk/following{/other_user}","gists_url":"https://api.github.com/users/mikeholmesuk/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeholmesuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeholmesuk/subscriptions","organizations_url":"https://api.github.com/users/mikeholmesuk/orgs","repos_url":"https://api.github.com/users/mikeholmesuk/repos","events_url":"https://api.github.com/users/mikeholmesuk/events{/privacy}","received_events_url":"https://api.github.com/users/mikeholmesuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-29T10:55:47Z","updated_at":"2015-08-17T17:12:55Z","closed_at":null,"body":"ArangoDB has supported multi-collection graphs since version 2.2 (see [here](https://www.arangodb.com/2014/07/multi-collection-graphs/) ) but the current version of clarango does not appear to. Creating a multi-collection graph through the web-console will generate the following error if trying to `get-info` from clarango:\r\n\r\n```java.lang.Exception: Clarango: There was an error trying to access a resource: clj-http: status 404; body: {\"error\" true, \"code\" 404, \"errorNum\" 1901, \"errorMessage\" \"Graph can not be loaded, because more than 1 vertex collection is defined. Please use the new graph module\"```\r\n\r\nMostly this appears to be because functions in the current `clarango.graph`(except for, rather oddly, the `create-vertex` function) use `_api/graph` instead of the updated `_api/gharial` end-points. This same problem exists when creating new graph databases as they use the deprecated `graph` end-points and as such can only be used to create single collection graphs.\r\n\r\nAll graph operations should be updated to support multi-collection graphs. If this is not backwards compatible then the fact that this is a breaking change should be highlighted.\r\n\r\n* I'm using ArangoDB 2.6.2 via the [ArangoDB docker](https://github.com/arangodb/arangodb-docker) image"},"comment":{"url":"https://api.github.com/repos/edlich/clarango/issues/comments/131893006","html_url":"https://github.com/edlich/clarango/issues/15#issuecomment-131893006","issue_url":"https://api.github.com/repos/edlich/clarango/issues/15","id":131893006,"user":{"login":"edlich","id":722016,"avatar_url":"https://avatars.githubusercontent.com/u/722016?v=3","gravatar_id":"","url":"https://api.github.com/users/edlich","html_url":"https://github.com/edlich","followers_url":"https://api.github.com/users/edlich/followers","following_url":"https://api.github.com/users/edlich/following{/other_user}","gists_url":"https://api.github.com/users/edlich/gists{/gist_id}","starred_url":"https://api.github.com/users/edlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edlich/subscriptions","organizations_url":"https://api.github.com/users/edlich/orgs","repos_url":"https://api.github.com/users/edlich/repos","events_url":"https://api.github.com/users/edlich/events{/privacy}","received_events_url":"https://api.github.com/users/edlich/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T17:12:55Z","updated_at":"2015-08-17T17:12:55Z","body":"Dear Mike,\n\nthanks a lot for your work.\nI am travelling and only be back next week for a pull. Perhaps Peter can\nhelp earlier.\n\nThanks and best\nStefan Edlich\nAm 17.08.2015 19:07 schrieb \"Mike Holmes\" <notifications@github.com>:\n\n> Hi Guys. apologies for the delay in getting a fix together for this. It\n> turns out that the changes were not as simple as I would have hoped. It\n> looks like the end-point structures have changed with the new graph styles\n> and I didn't want to complicate everything (as well as risk not being\n> backwards compatible) by doing everything within the same namespace. As\n> such I've created a new namespace to handle the graph features available\n> under ../gharial/... . I've added quite extensive tests around the\n> vertices, edges and creating new graphs.\n>\n> Multi-collection graphs can now be created using the following command:\n>\n> (gharial/create :test-graph [{:edge-collection \"my-test-edges\" :from\n> [:people] :to [:content]}])\n>\n> I've raised a pull request #16\n> <https://github.com/edlich/clarango/pull/16> .\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/edlich/clarango/issues/15#issuecomment-131891916>.\n>\n"}}