{"action":"opened","issue":{"url":"https://api.github.com/repos/threatify/arango-orm/issues/49","repository_url":"https://api.github.com/repos/threatify/arango-orm","labels_url":"https://api.github.com/repos/threatify/arango-orm/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/threatify/arango-orm/issues/49/comments","events_url":"https://api.github.com/repos/threatify/arango-orm/issues/49/events","html_url":"https://github.com/threatify/arango-orm/issues/49","id":393439145,"node_id":"MDU6SXNzdWUzOTM0MzkxNDU=","number":49,"title":"AQL query does not work when returning vertex","user":{"login":"soderluk","id":6086071,"node_id":"MDQ6VXNlcjYwODYwNzE=","avatar_url":"https://avatars3.githubusercontent.com/u/6086071?v=4","gravatar_id":"","url":"https://api.github.com/users/soderluk","html_url":"https://github.com/soderluk","followers_url":"https://api.github.com/users/soderluk/followers","following_url":"https://api.github.com/users/soderluk/following{/other_user}","gists_url":"https://api.github.com/users/soderluk/gists{/gist_id}","starred_url":"https://api.github.com/users/soderluk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soderluk/subscriptions","organizations_url":"https://api.github.com/users/soderluk/orgs","repos_url":"https://api.github.com/users/soderluk/repos","events_url":"https://api.github.com/users/soderluk/events{/privacy}","received_events_url":"https://api.github.com/users/soderluk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-21T12:17:45Z","updated_at":"2018-12-21T12:17:45Z","closed_at":null,"author_association":"NONE","body":"When running an AQL query against a graph, I get `KeyError: 'vertices'`, query I'm using:\r\n`FOR v, e, p IN 1..2 ANY 'collection/_key' GRAPH 'graph' RETURN v`\r\nThe error occurs in `_objectify_results(results)`:\r\n```\r\nfor p_dict in results:\r\n    for v_dict in p_dict['vertices']:\r\n```\r\nThe `p_dict` is a dictionary for the model I'm searching for. It only contains the model attributes, nothing in regards to vertices or edges.\r\n\r\nI think the AQL function should also support returning a list of vertex/edge models instead of always relying on returning the path."}}
{"actor":{"display_login":"soderluk"}}