{"action":"closed","number":13,"pull_request":{"url":"https://api.github.com/repos/elbow-jason/dgraph_ex/pulls/13","id":134803148,"html_url":"https://github.com/elbow-jason/dgraph_ex/pull/13","diff_url":"https://github.com/elbow-jason/dgraph_ex/pull/13.diff","patch_url":"https://github.com/elbow-jason/dgraph_ex/pull/13.patch","issue_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/issues/13","number":13,"state":"closed","locked":false,"title":"Nested Model support","user":{"login":"elbow-jason","id":4923601,"avatar_url":"https://avatars0.githubusercontent.com/u/4923601?v=4","gravatar_id":"","url":"https://api.github.com/users/elbow-jason","html_url":"https://github.com/elbow-jason","followers_url":"https://api.github.com/users/elbow-jason/followers","following_url":"https://api.github.com/users/elbow-jason/following{/other_user}","gists_url":"https://api.github.com/users/elbow-jason/gists{/gist_id}","starred_url":"https://api.github.com/users/elbow-jason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elbow-jason/subscriptions","organizations_url":"https://api.github.com/users/elbow-jason/orgs","repos_url":"https://api.github.com/users/elbow-jason/repos","events_url":"https://api.github.com/users/elbow-jason/events{/privacy}","received_events_url":"https://api.github.com/users/elbow-jason/received_events","type":"User","site_admin":false},"body":"An example pull out of the tests:\r\n\r\n```elixir\r\ndefmodule DgraphEx.ModelCompany do\r\n  use DgraphEx.Vertex\r\n\r\n  vertex :company do\r\n    field :name, :string\r\n    field :owner, :uid, model: DgraphEx.ModelPerson, reverse: true\r\n  end\r\n\r\nend\r\n```\r\n\r\n```elixir\r\ndefmodule DgraphEx.ModelPerson do\r\n  use DgraphEx.Vertex\r\n\r\n  vertex :person do\r\n    field :name,      :string\r\n    field :age,       :int\r\n    field :works_at,  :uid, model: DgraphEx.ModelCompany\r\n  end\r\n\r\nend\r\n\r\n```\r\n\r\n\r\n```elixir\r\n  test \"render mutation set can handle a nested model\" do\r\n    assert clean_format(\"\"\"\r\n      mutation {\r\n        set {\r\n          _:company <name> \"TurfBytes\"^^<xs:string> .\r\n          _:company <owner> _:owner .\r\n          _:owner <name> \"Jason\"^^<xs:string> .\r\n        }\r\n      }\r\n    \"\"\") ==\r\n    mutation()\r\n    |> set(%Company{\r\n      name: \"TurfBytes\",\r\n      owner: %Person{\r\n        name: \"Jason\"\r\n      }\r\n    })\r\n    |> render\r\n  end\r\n```","created_at":"2017-08-09T03:33:04Z","updated_at":"2017-08-09T03:33:23Z","closed_at":"2017-08-09T03:33:23Z","merged_at":"2017-08-09T03:33:22Z","merge_commit_sha":"b7c414d929251f69c8d1c8547cc89b93efb0a416","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/pulls/13/commits","review_comments_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/pulls/13/comments","review_comment_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/issues/13/comments","statuses_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/statuses/c2bb47f989390541cf83e333703caa17df1c6e66","head":{"label":"elbow-jason:refactor-mutation","ref":"refactor-mutation","sha":"c2bb47f989390541cf83e333703caa17df1c6e66","user":{"login":"elbow-jason","id":4923601,"avatar_url":"https://avatars0.githubusercontent.com/u/4923601?v=4","gravatar_id":"","url":"https://api.github.com/users/elbow-jason","html_url":"https://github.com/elbow-jason","followers_url":"https://api.github.com/users/elbow-jason/followers","following_url":"https://api.github.com/users/elbow-jason/following{/other_user}","gists_url":"https://api.github.com/users/elbow-jason/gists{/gist_id}","starred_url":"https://api.github.com/users/elbow-jason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elbow-jason/subscriptions","organizations_url":"https://api.github.com/users/elbow-jason/orgs","repos_url":"https://api.github.com/users/elbow-jason/repos","events_url":"https://api.github.com/users/elbow-jason/events{/privacy}","received_events_url":"https://api.github.com/users/elbow-jason/received_events","type":"User","site_admin":false},"repo":{"id":98305632,"name":"dgraph_ex","full_name":"elbow-jason/dgraph_ex","owner":{"login":"elbow-jason","id":4923601,"avatar_url":"https://avatars0.githubusercontent.com/u/4923601?v=4","gravatar_id":"","url":"https://api.github.com/users/elbow-jason","html_url":"https://github.com/elbow-jason","followers_url":"https://api.github.com/users/elbow-jason/followers","following_url":"https://api.github.com/users/elbow-jason/following{/other_user}","gists_url":"https://api.github.com/users/elbow-jason/gists{/gist_id}","starred_url":"https://api.github.com/users/elbow-jason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elbow-jason/subscriptions","organizations_url":"https://api.github.com/users/elbow-jason/orgs","repos_url":"https://api.github.com/users/elbow-jason/repos","events_url":"https://api.github.com/users/elbow-jason/events{/privacy}","received_events_url":"https://api.github.com/users/elbow-jason/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elbow-jason/dgraph_ex","description":"A database wrapper and http client for dgraph","fork":false,"url":"https://api.github.com/repos/elbow-jason/dgraph_ex","forks_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/forks","keys_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/teams","hooks_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/hooks","issue_events_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/issues/events{/number}","events_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/events","assignees_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/assignees{/user}","branches_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/branches{/branch}","tags_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/tags","blobs_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/git/refs{/sha}","trees_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/statuses/{sha}","languages_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/languages","stargazers_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/stargazers","contributors_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/contributors","subscribers_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/subscribers","subscription_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/subscription","commits_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/commits{/sha}","git_commits_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/git/commits{/sha}","comments_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/comments{/number}","issue_comment_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/issues/comments{/number}","contents_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/contents/{+path}","compare_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/merges","archive_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/downloads","issues_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/issues{/number}","pulls_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/pulls{/number}","milestones_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/milestones{/number}","notifications_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/labels{/name}","releases_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/releases{/id}","deployments_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/deployments","created_at":"2017-07-25T12:50:30Z","updated_at":"2017-08-09T02:51:43Z","pushed_at":"2017-08-09T03:33:22Z","git_url":"git://github.com/elbow-jason/dgraph_ex.git","ssh_url":"git@github.com:elbow-jason/dgraph_ex.git","clone_url":"https://github.com/elbow-jason/dgraph_ex.git","svn_url":"https://github.com/elbow-jason/dgraph_ex","homepage":"","size":86,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"elbow-jason:master","ref":"master","sha":"bc1cf762d4585315a28335cbad7027164c8be213","user":{"login":"elbow-jason","id":4923601,"avatar_url":"https://avatars0.githubusercontent.com/u/4923601?v=4","gravatar_id":"","url":"https://api.github.com/users/elbow-jason","html_url":"https://github.com/elbow-jason","followers_url":"https://api.github.com/users/elbow-jason/followers","following_url":"https://api.github.com/users/elbow-jason/following{/other_user}","gists_url":"https://api.github.com/users/elbow-jason/gists{/gist_id}","starred_url":"https://api.github.com/users/elbow-jason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elbow-jason/subscriptions","organizations_url":"https://api.github.com/users/elbow-jason/orgs","repos_url":"https://api.github.com/users/elbow-jason/repos","events_url":"https://api.github.com/users/elbow-jason/events{/privacy}","received_events_url":"https://api.github.com/users/elbow-jason/received_events","type":"User","site_admin":false},"repo":{"id":98305632,"name":"dgraph_ex","full_name":"elbow-jason/dgraph_ex","owner":{"login":"elbow-jason","id":4923601,"avatar_url":"https://avatars0.githubusercontent.com/u/4923601?v=4","gravatar_id":"","url":"https://api.github.com/users/elbow-jason","html_url":"https://github.com/elbow-jason","followers_url":"https://api.github.com/users/elbow-jason/followers","following_url":"https://api.github.com/users/elbow-jason/following{/other_user}","gists_url":"https://api.github.com/users/elbow-jason/gists{/gist_id}","starred_url":"https://api.github.com/users/elbow-jason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elbow-jason/subscriptions","organizations_url":"https://api.github.com/users/elbow-jason/orgs","repos_url":"https://api.github.com/users/elbow-jason/repos","events_url":"https://api.github.com/users/elbow-jason/events{/privacy}","received_events_url":"https://api.github.com/users/elbow-jason/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elbow-jason/dgraph_ex","description":"A database wrapper and http client for dgraph","fork":false,"url":"https://api.github.com/repos/elbow-jason/dgraph_ex","forks_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/forks","keys_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/teams","hooks_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/hooks","issue_events_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/issues/events{/number}","events_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/events","assignees_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/assignees{/user}","branches_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/branches{/branch}","tags_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/tags","blobs_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/git/refs{/sha}","trees_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/statuses/{sha}","languages_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/languages","stargazers_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/stargazers","contributors_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/contributors","subscribers_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/subscribers","subscription_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/subscription","commits_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/commits{/sha}","git_commits_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/git/commits{/sha}","comments_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/comments{/number}","issue_comment_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/issues/comments{/number}","contents_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/contents/{+path}","compare_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/merges","archive_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/downloads","issues_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/issues{/number}","pulls_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/pulls{/number}","milestones_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/milestones{/number}","notifications_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/labels{/name}","releases_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/releases{/id}","deployments_url":"https://api.github.com/repos/elbow-jason/dgraph_ex/deployments","created_at":"2017-07-25T12:50:30Z","updated_at":"2017-08-09T02:51:43Z","pushed_at":"2017-08-09T03:33:22Z","git_url":"git://github.com/elbow-jason/dgraph_ex.git","ssh_url":"git@github.com:elbow-jason/dgraph_ex.git","clone_url":"https://github.com/elbow-jason/dgraph_ex.git","svn_url":"https://github.com/elbow-jason/dgraph_ex","homepage":"","size":86,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elbow-jason/dgraph_ex/pulls/13"},"html":{"href":"https://github.com/elbow-jason/dgraph_ex/pull/13"},"issue":{"href":"https://api.github.com/repos/elbow-jason/dgraph_ex/issues/13"},"comments":{"href":"https://api.github.com/repos/elbow-jason/dgraph_ex/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/elbow-jason/dgraph_ex/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/elbow-jason/dgraph_ex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elbow-jason/dgraph_ex/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/elbow-jason/dgraph_ex/statuses/c2bb47f989390541cf83e333703caa17df1c6e66"}},"merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"elbow-jason","id":4923601,"avatar_url":"https://avatars0.githubusercontent.com/u/4923601?v=4","gravatar_id":"","url":"https://api.github.com/users/elbow-jason","html_url":"https://github.com/elbow-jason","followers_url":"https://api.github.com/users/elbow-jason/followers","following_url":"https://api.github.com/users/elbow-jason/following{/other_user}","gists_url":"https://api.github.com/users/elbow-jason/gists{/gist_id}","starred_url":"https://api.github.com/users/elbow-jason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elbow-jason/subscriptions","organizations_url":"https://api.github.com/users/elbow-jason/orgs","repos_url":"https://api.github.com/users/elbow-jason/repos","events_url":"https://api.github.com/users/elbow-jason/events{/privacy}","received_events_url":"https://api.github.com/users/elbow-jason/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":166,"deletions":26,"changed_files":11}}
{"actor":{"display_login":"elbow-jason"}}