{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/OneHQ/hq-graphql/pulls/4","id":233336751,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMzM2NzUx","html_url":"https://github.com/OneHQ/hq-graphql/pull/4","diff_url":"https://github.com/OneHQ/hq-graphql/pull/4.diff","patch_url":"https://github.com/OneHQ/hq-graphql/pull/4.patch","issue_url":"https://api.github.com/repos/OneHQ/hq-graphql/issues/4","number":4,"state":"closed","locked":false,"title":"Append \"_attributes\" to nested attribute inputs","user":{"login":"dnnyjns","id":6320023,"node_id":"MDQ6VXNlcjYzMjAwMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/6320023?v=4","gravatar_id":"","url":"https://api.github.com/users/dnnyjns","html_url":"https://github.com/dnnyjns","followers_url":"https://api.github.com/users/dnnyjns/followers","following_url":"https://api.github.com/users/dnnyjns/following{/other_user}","gists_url":"https://api.github.com/users/dnnyjns/gists{/gist_id}","starred_url":"https://api.github.com/users/dnnyjns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnnyjns/subscriptions","organizations_url":"https://api.github.com/users/dnnyjns/orgs","repos_url":"https://api.github.com/users/dnnyjns/repos","events_url":"https://api.github.com/users/dnnyjns/events{/privacy}","received_events_url":"https://api.github.com/users/dnnyjns/received_events","type":"User","site_admin":false},"body":"- Recursively format attributes so that they are compatible with `accepts_nested_attributes_for`. \r\n- Add \"attributes\" argument to mutations\r\n  1) This makes a bit more clear that id is used to find the advisor, and attributes are used to update\r\n  2) This makes it a bit easier when updating several attributes at once. You only need to declare one variable in your query instead of 1 variable per updated attribute\r\n\r\nOld\r\n```\r\nmutation UpdateUser($id: UUID!, $firstName: String, $lastName: String, $codeName: String) {\r\n  updateAdvisor(id:$id, firstName:$firstName, lastName:$lastName, codeName:$codeName) {\r\n    id\r\n    firstName\r\n  }\r\n}\r\n```\r\nNew. Add one variable named attributes. Attributes includes firstName, lastName, codeName, etc...\r\n```\r\n\r\nmutation UpdateUser($id: UUID!, $attributes: UserInput!) {\r\n  updateAdvisor(id:$id, attributes:$attributes) {\r\n    id\r\n    firstName\r\n  }\r\n}\r\n```\r\n\r\n","created_at":"2018-11-24T19:44:58Z","updated_at":"2018-11-28T16:18:44Z","closed_at":"2018-11-28T16:18:44Z","merged_at":"2018-11-28T16:18:44Z","merge_commit_sha":"740c64ebb9cfece3fd6f3681fc259440011d89ab","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/OneHQ/hq-graphql/pulls/4/commits","review_comments_url":"https://api.github.com/repos/OneHQ/hq-graphql/pulls/4/comments","review_comment_url":"https://api.github.com/repos/OneHQ/hq-graphql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OneHQ/hq-graphql/issues/4/comments","statuses_url":"https://api.github.com/repos/OneHQ/hq-graphql/statuses/0a0d87a01820769dbf9e0bcff771063becf6bed2","head":{"label":"dnnyjns:master","ref":"master","sha":"0a0d87a01820769dbf9e0bcff771063becf6bed2","user":{"login":"dnnyjns","id":6320023,"node_id":"MDQ6VXNlcjYzMjAwMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/6320023?v=4","gravatar_id":"","url":"https://api.github.com/users/dnnyjns","html_url":"https://github.com/dnnyjns","followers_url":"https://api.github.com/users/dnnyjns/followers","following_url":"https://api.github.com/users/dnnyjns/following{/other_user}","gists_url":"https://api.github.com/users/dnnyjns/gists{/gist_id}","starred_url":"https://api.github.com/users/dnnyjns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnnyjns/subscriptions","organizations_url":"https://api.github.com/users/dnnyjns/orgs","repos_url":"https://api.github.com/users/dnnyjns/repos","events_url":"https://api.github.com/users/dnnyjns/events{/privacy}","received_events_url":"https://api.github.com/users/dnnyjns/received_events","type":"User","site_admin":false},"repo":{"id":141322313,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEzMjIzMTM=","name":"hq-graphql","full_name":"dnnyjns/hq-graphql","private":false,"owner":{"login":"dnnyjns","id":6320023,"node_id":"MDQ6VXNlcjYzMjAwMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/6320023?v=4","gravatar_id":"","url":"https://api.github.com/users/dnnyjns","html_url":"https://github.com/dnnyjns","followers_url":"https://api.github.com/users/dnnyjns/followers","following_url":"https://api.github.com/users/dnnyjns/following{/other_user}","gists_url":"https://api.github.com/users/dnnyjns/gists{/gist_id}","starred_url":"https://api.github.com/users/dnnyjns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnnyjns/subscriptions","organizations_url":"https://api.github.com/users/dnnyjns/orgs","repos_url":"https://api.github.com/users/dnnyjns/repos","events_url":"https://api.github.com/users/dnnyjns/events{/privacy}","received_events_url":"https://api.github.com/users/dnnyjns/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dnnyjns/hq-graphql","description":null,"fork":true,"url":"https://api.github.com/repos/dnnyjns/hq-graphql","forks_url":"https://api.github.com/repos/dnnyjns/hq-graphql/forks","keys_url":"https://api.github.com/repos/dnnyjns/hq-graphql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dnnyjns/hq-graphql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dnnyjns/hq-graphql/teams","hooks_url":"https://api.github.com/repos/dnnyjns/hq-graphql/hooks","issue_events_url":"https://api.github.com/repos/dnnyjns/hq-graphql/issues/events{/number}","events_url":"https://api.github.com/repos/dnnyjns/hq-graphql/events","assignees_url":"https://api.github.com/repos/dnnyjns/hq-graphql/assignees{/user}","branches_url":"https://api.github.com/repos/dnnyjns/hq-graphql/branches{/branch}","tags_url":"https://api.github.com/repos/dnnyjns/hq-graphql/tags","blobs_url":"https://api.github.com/repos/dnnyjns/hq-graphql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dnnyjns/hq-graphql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dnnyjns/hq-graphql/git/refs{/sha}","trees_url":"https://api.github.com/repos/dnnyjns/hq-graphql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dnnyjns/hq-graphql/statuses/{sha}","languages_url":"https://api.github.com/repos/dnnyjns/hq-graphql/languages","stargazers_url":"https://api.github.com/repos/dnnyjns/hq-graphql/stargazers","contributors_url":"https://api.github.com/repos/dnnyjns/hq-graphql/contributors","subscribers_url":"https://api.github.com/repos/dnnyjns/hq-graphql/subscribers","subscription_url":"https://api.github.com/repos/dnnyjns/hq-graphql/subscription","commits_url":"https://api.github.com/repos/dnnyjns/hq-graphql/commits{/sha}","git_commits_url":"https://api.github.com/repos/dnnyjns/hq-graphql/git/commits{/sha}","comments_url":"https://api.github.com/repos/dnnyjns/hq-graphql/comments{/number}","issue_comment_url":"https://api.github.com/repos/dnnyjns/hq-graphql/issues/comments{/number}","contents_url":"https://api.github.com/repos/dnnyjns/hq-graphql/contents/{+path}","compare_url":"https://api.github.com/repos/dnnyjns/hq-graphql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dnnyjns/hq-graphql/merges","archive_url":"https://api.github.com/repos/dnnyjns/hq-graphql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dnnyjns/hq-graphql/downloads","issues_url":"https://api.github.com/repos/dnnyjns/hq-graphql/issues{/number}","pulls_url":"https://api.github.com/repos/dnnyjns/hq-graphql/pulls{/number}","milestones_url":"https://api.github.com/repos/dnnyjns/hq-graphql/milestones{/number}","notifications_url":"https://api.github.com/repos/dnnyjns/hq-graphql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dnnyjns/hq-graphql/labels{/name}","releases_url":"https://api.github.com/repos/dnnyjns/hq-graphql/releases{/id}","deployments_url":"https://api.github.com/repos/dnnyjns/hq-graphql/deployments","created_at":"2018-07-17T17:30:16Z","updated_at":"2018-11-25T23:16:49Z","pushed_at":"2018-11-25T23:16:47Z","git_url":"git://github.com/dnnyjns/hq-graphql.git","ssh_url":"git@github.com:dnnyjns/hq-graphql.git","clone_url":"https://github.com/dnnyjns/hq-graphql.git","svn_url":"https://github.com/dnnyjns/hq-graphql","homepage":null,"size":39,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OneHQ:master","ref":"master","sha":"1e39e9afe3c3d44e37dc04936da6d1c277351d68","user":{"login":"OneHQ","id":20305,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzA1","avatar_url":"https://avatars1.githubusercontent.com/u/20305?v=4","gravatar_id":"","url":"https://api.github.com/users/OneHQ","html_url":"https://github.com/OneHQ","followers_url":"https://api.github.com/users/OneHQ/followers","following_url":"https://api.github.com/users/OneHQ/following{/other_user}","gists_url":"https://api.github.com/users/OneHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/OneHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OneHQ/subscriptions","organizations_url":"https://api.github.com/users/OneHQ/orgs","repos_url":"https://api.github.com/users/OneHQ/repos","events_url":"https://api.github.com/users/OneHQ/events{/privacy}","received_events_url":"https://api.github.com/users/OneHQ/received_events","type":"Organization","site_admin":false},"repo":{"id":141321326,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEzMjEzMjY=","name":"hq-graphql","full_name":"OneHQ/hq-graphql","private":false,"owner":{"login":"OneHQ","id":20305,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzA1","avatar_url":"https://avatars1.githubusercontent.com/u/20305?v=4","gravatar_id":"","url":"https://api.github.com/users/OneHQ","html_url":"https://github.com/OneHQ","followers_url":"https://api.github.com/users/OneHQ/followers","following_url":"https://api.github.com/users/OneHQ/following{/other_user}","gists_url":"https://api.github.com/users/OneHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/OneHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OneHQ/subscriptions","organizations_url":"https://api.github.com/users/OneHQ/orgs","repos_url":"https://api.github.com/users/OneHQ/repos","events_url":"https://api.github.com/users/OneHQ/events{/privacy}","received_events_url":"https://api.github.com/users/OneHQ/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/OneHQ/hq-graphql","description":null,"fork":false,"url":"https://api.github.com/repos/OneHQ/hq-graphql","forks_url":"https://api.github.com/repos/OneHQ/hq-graphql/forks","keys_url":"https://api.github.com/repos/OneHQ/hq-graphql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OneHQ/hq-graphql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OneHQ/hq-graphql/teams","hooks_url":"https://api.github.com/repos/OneHQ/hq-graphql/hooks","issue_events_url":"https://api.github.com/repos/OneHQ/hq-graphql/issues/events{/number}","events_url":"https://api.github.com/repos/OneHQ/hq-graphql/events","assignees_url":"https://api.github.com/repos/OneHQ/hq-graphql/assignees{/user}","branches_url":"https://api.github.com/repos/OneHQ/hq-graphql/branches{/branch}","tags_url":"https://api.github.com/repos/OneHQ/hq-graphql/tags","blobs_url":"https://api.github.com/repos/OneHQ/hq-graphql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OneHQ/hq-graphql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OneHQ/hq-graphql/git/refs{/sha}","trees_url":"https://api.github.com/repos/OneHQ/hq-graphql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OneHQ/hq-graphql/statuses/{sha}","languages_url":"https://api.github.com/repos/OneHQ/hq-graphql/languages","stargazers_url":"https://api.github.com/repos/OneHQ/hq-graphql/stargazers","contributors_url":"https://api.github.com/repos/OneHQ/hq-graphql/contributors","subscribers_url":"https://api.github.com/repos/OneHQ/hq-graphql/subscribers","subscription_url":"https://api.github.com/repos/OneHQ/hq-graphql/subscription","commits_url":"https://api.github.com/repos/OneHQ/hq-graphql/commits{/sha}","git_commits_url":"https://api.github.com/repos/OneHQ/hq-graphql/git/commits{/sha}","comments_url":"https://api.github.com/repos/OneHQ/hq-graphql/comments{/number}","issue_comment_url":"https://api.github.com/repos/OneHQ/hq-graphql/issues/comments{/number}","contents_url":"https://api.github.com/repos/OneHQ/hq-graphql/contents/{+path}","compare_url":"https://api.github.com/repos/OneHQ/hq-graphql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OneHQ/hq-graphql/merges","archive_url":"https://api.github.com/repos/OneHQ/hq-graphql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OneHQ/hq-graphql/downloads","issues_url":"https://api.github.com/repos/OneHQ/hq-graphql/issues{/number}","pulls_url":"https://api.github.com/repos/OneHQ/hq-graphql/pulls{/number}","milestones_url":"https://api.github.com/repos/OneHQ/hq-graphql/milestones{/number}","notifications_url":"https://api.github.com/repos/OneHQ/hq-graphql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OneHQ/hq-graphql/labels{/name}","releases_url":"https://api.github.com/repos/OneHQ/hq-graphql/releases{/id}","deployments_url":"https://api.github.com/repos/OneHQ/hq-graphql/deployments","created_at":"2018-07-17T17:20:53Z","updated_at":"2018-11-14T01:34:13Z","pushed_at":"2018-11-28T16:18:44Z","git_url":"git://github.com/OneHQ/hq-graphql.git","ssh_url":"git@github.com:OneHQ/hq-graphql.git","clone_url":"https://github.com/OneHQ/hq-graphql.git","svn_url":"https://github.com/OneHQ/hq-graphql","homepage":null,"size":28,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":0,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OneHQ/hq-graphql/pulls/4"},"html":{"href":"https://github.com/OneHQ/hq-graphql/pull/4"},"issue":{"href":"https://api.github.com/repos/OneHQ/hq-graphql/issues/4"},"comments":{"href":"https://api.github.com/repos/OneHQ/hq-graphql/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/OneHQ/hq-graphql/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/OneHQ/hq-graphql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OneHQ/hq-graphql/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/OneHQ/hq-graphql/statuses/0a0d87a01820769dbf9e0bcff771063becf6bed2"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"dnnyjns","id":6320023,"node_id":"MDQ6VXNlcjYzMjAwMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/6320023?v=4","gravatar_id":"","url":"https://api.github.com/users/dnnyjns","html_url":"https://github.com/dnnyjns","followers_url":"https://api.github.com/users/dnnyjns/followers","following_url":"https://api.github.com/users/dnnyjns/following{/other_user}","gists_url":"https://api.github.com/users/dnnyjns/gists{/gist_id}","starred_url":"https://api.github.com/users/dnnyjns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnnyjns/subscriptions","organizations_url":"https://api.github.com/users/dnnyjns/orgs","repos_url":"https://api.github.com/users/dnnyjns/repos","events_url":"https://api.github.com/users/dnnyjns/events{/privacy}","received_events_url":"https://api.github.com/users/dnnyjns/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":7,"additions":169,"deletions":125,"changed_files":12}}
{"actor":{"display_login":"dnnyjns"}}