{"action":"opened","number":129,"pull_request":{"url":"https://api.github.com/repos/rmosolgo/graphql-ruby/pulls/129","id":64998301,"html_url":"https://github.com/rmosolgo/graphql-ruby/pull/129","diff_url":"https://github.com/rmosolgo/graphql-ruby/pull/129.diff","patch_url":"https://github.com/rmosolgo/graphql-ruby/pull/129.patch","issue_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/129","number":129,"state":"open","locked":false,"title":"Middleware Argument Override","user":{"login":"theorygeek","id":7850196,"avatar_url":"https://avatars.githubusercontent.com/u/7850196?v=3","gravatar_id":"","url":"https://api.github.com/users/theorygeek","html_url":"https://github.com/theorygeek","followers_url":"https://api.github.com/users/theorygeek/followers","following_url":"https://api.github.com/users/theorygeek/following{/other_user}","gists_url":"https://api.github.com/users/theorygeek/gists{/gist_id}","starred_url":"https://api.github.com/users/theorygeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theorygeek/subscriptions","organizations_url":"https://api.github.com/users/theorygeek/orgs","repos_url":"https://api.github.com/users/theorygeek/repos","events_url":"https://api.github.com/users/theorygeek/events{/privacy}","received_events_url":"https://api.github.com/users/theorygeek/received_events","type":"User","site_admin":false},"body":"Allows middleware to change the arguments that will be passed to the next middleware.\r\n\r\n**Use Case**\r\nCurrent, middleware can be used if you want to stop execution and return a value early. For example, this is helpful for authorizing field access and returning an error.\r\n\r\nHowever, sometimes you may simply want to _modify_ the value that is passed to the next field. In my case, I have a hash that tells me how fields on my GraphQL schema map to attributes on my models. Sometimes, I need to traverse across an association to produce the value.\r\n\r\nThis change allows me to make sure that the association has been loaded (using the `graphql-batch` gem) before the field's resolver actually attempts to access the value.","created_at":"2016-04-01T20:08:41Z","updated_at":"2016-04-01T20:08:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/pulls/129/commits","review_comments_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/pulls/129/comments","review_comment_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/129/comments","statuses_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/statuses/0a2a147fbcf6f36ef9baf072997c2599c41a4b40","head":{"label":"goco-inc:middleware-overrides","ref":"middleware-overrides","sha":"0a2a147fbcf6f36ef9baf072997c2599c41a4b40","user":{"login":"goco-inc","id":10982783,"avatar_url":"https://avatars.githubusercontent.com/u/10982783?v=3","gravatar_id":"","url":"https://api.github.com/users/goco-inc","html_url":"https://github.com/goco-inc","followers_url":"https://api.github.com/users/goco-inc/followers","following_url":"https://api.github.com/users/goco-inc/following{/other_user}","gists_url":"https://api.github.com/users/goco-inc/gists{/gist_id}","starred_url":"https://api.github.com/users/goco-inc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goco-inc/subscriptions","organizations_url":"https://api.github.com/users/goco-inc/orgs","repos_url":"https://api.github.com/users/goco-inc/repos","events_url":"https://api.github.com/users/goco-inc/events{/privacy}","received_events_url":"https://api.github.com/users/goco-inc/received_events","type":"Organization","site_admin":false},"repo":{"id":52611150,"name":"graphql-ruby","full_name":"goco-inc/graphql-ruby","owner":{"login":"goco-inc","id":10982783,"avatar_url":"https://avatars.githubusercontent.com/u/10982783?v=3","gravatar_id":"","url":"https://api.github.com/users/goco-inc","html_url":"https://github.com/goco-inc","followers_url":"https://api.github.com/users/goco-inc/followers","following_url":"https://api.github.com/users/goco-inc/following{/other_user}","gists_url":"https://api.github.com/users/goco-inc/gists{/gist_id}","starred_url":"https://api.github.com/users/goco-inc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goco-inc/subscriptions","organizations_url":"https://api.github.com/users/goco-inc/orgs","repos_url":"https://api.github.com/users/goco-inc/repos","events_url":"https://api.github.com/users/goco-inc/events{/privacy}","received_events_url":"https://api.github.com/users/goco-inc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/goco-inc/graphql-ruby","description":"Ruby implementation of Facebook's GraphQL ","fork":true,"url":"https://api.github.com/repos/goco-inc/graphql-ruby","forks_url":"https://api.github.com/repos/goco-inc/graphql-ruby/forks","keys_url":"https://api.github.com/repos/goco-inc/graphql-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goco-inc/graphql-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goco-inc/graphql-ruby/teams","hooks_url":"https://api.github.com/repos/goco-inc/graphql-ruby/hooks","issue_events_url":"https://api.github.com/repos/goco-inc/graphql-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/goco-inc/graphql-ruby/events","assignees_url":"https://api.github.com/repos/goco-inc/graphql-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/goco-inc/graphql-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/goco-inc/graphql-ruby/tags","blobs_url":"https://api.github.com/repos/goco-inc/graphql-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goco-inc/graphql-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goco-inc/graphql-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/goco-inc/graphql-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goco-inc/graphql-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/goco-inc/graphql-ruby/languages","stargazers_url":"https://api.github.com/repos/goco-inc/graphql-ruby/stargazers","contributors_url":"https://api.github.com/repos/goco-inc/graphql-ruby/contributors","subscribers_url":"https://api.github.com/repos/goco-inc/graphql-ruby/subscribers","subscription_url":"https://api.github.com/repos/goco-inc/graphql-ruby/subscription","commits_url":"https://api.github.com/repos/goco-inc/graphql-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/goco-inc/graphql-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/goco-inc/graphql-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/goco-inc/graphql-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/goco-inc/graphql-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/goco-inc/graphql-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goco-inc/graphql-ruby/merges","archive_url":"https://api.github.com/repos/goco-inc/graphql-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goco-inc/graphql-ruby/downloads","issues_url":"https://api.github.com/repos/goco-inc/graphql-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/goco-inc/graphql-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/goco-inc/graphql-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/goco-inc/graphql-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goco-inc/graphql-ruby/labels{/name}","releases_url":"https://api.github.com/repos/goco-inc/graphql-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/goco-inc/graphql-ruby/deployments","created_at":"2016-02-26T14:50:57Z","updated_at":"2016-02-26T14:50:58Z","pushed_at":"2016-04-01T20:01:21Z","git_url":"git://github.com/goco-inc/graphql-ruby.git","ssh_url":"git@github.com:goco-inc/graphql-ruby.git","clone_url":"https://github.com/goco-inc/graphql-ruby.git","svn_url":"https://github.com/goco-inc/graphql-ruby","homepage":"","size":1015,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rmosolgo:master","ref":"master","sha":"13394cac839113c0530daf4140355e03ca549dba","user":{"login":"rmosolgo","id":2231765,"avatar_url":"https://avatars.githubusercontent.com/u/2231765?v=3","gravatar_id":"","url":"https://api.github.com/users/rmosolgo","html_url":"https://github.com/rmosolgo","followers_url":"https://api.github.com/users/rmosolgo/followers","following_url":"https://api.github.com/users/rmosolgo/following{/other_user}","gists_url":"https://api.github.com/users/rmosolgo/gists{/gist_id}","starred_url":"https://api.github.com/users/rmosolgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmosolgo/subscriptions","organizations_url":"https://api.github.com/users/rmosolgo/orgs","repos_url":"https://api.github.com/users/rmosolgo/repos","events_url":"https://api.github.com/users/rmosolgo/events{/privacy}","received_events_url":"https://api.github.com/users/rmosolgo/received_events","type":"User","site_admin":false},"repo":{"id":30337170,"name":"graphql-ruby","full_name":"rmosolgo/graphql-ruby","owner":{"login":"rmosolgo","id":2231765,"avatar_url":"https://avatars.githubusercontent.com/u/2231765?v=3","gravatar_id":"","url":"https://api.github.com/users/rmosolgo","html_url":"https://github.com/rmosolgo","followers_url":"https://api.github.com/users/rmosolgo/followers","following_url":"https://api.github.com/users/rmosolgo/following{/other_user}","gists_url":"https://api.github.com/users/rmosolgo/gists{/gist_id}","starred_url":"https://api.github.com/users/rmosolgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmosolgo/subscriptions","organizations_url":"https://api.github.com/users/rmosolgo/orgs","repos_url":"https://api.github.com/users/rmosolgo/repos","events_url":"https://api.github.com/users/rmosolgo/events{/privacy}","received_events_url":"https://api.github.com/users/rmosolgo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rmosolgo/graphql-ruby","description":"Ruby implementation of Facebook's GraphQL ","fork":false,"url":"https://api.github.com/repos/rmosolgo/graphql-ruby","forks_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/forks","keys_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/teams","hooks_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/hooks","issue_events_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/events","assignees_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/tags","blobs_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/languages","stargazers_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/stargazers","contributors_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/contributors","subscribers_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/subscribers","subscription_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/subscription","commits_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/merges","archive_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/downloads","issues_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/labels{/name}","releases_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/deployments","created_at":"2015-02-05T04:11:22Z","updated_at":"2016-03-31T10:51:34Z","pushed_at":"2016-03-31T20:10:35Z","git_url":"git://github.com/rmosolgo/graphql-ruby.git","ssh_url":"git@github.com:rmosolgo/graphql-ruby.git","clone_url":"https://github.com/rmosolgo/graphql-ruby.git","svn_url":"https://github.com/rmosolgo/graphql-ruby","homepage":"","size":1113,"stargazers_count":655,"watchers_count":655,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":10,"forks":54,"open_issues":10,"watchers":655,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rmosolgo/graphql-ruby/pulls/129"},"html":{"href":"https://github.com/rmosolgo/graphql-ruby/pull/129"},"issue":{"href":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/129"},"comments":{"href":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/129/comments"},"review_comments":{"href":"https://api.github.com/repos/rmosolgo/graphql-ruby/pulls/129/comments"},"review_comment":{"href":"https://api.github.com/repos/rmosolgo/graphql-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rmosolgo/graphql-ruby/pulls/129/commits"},"statuses":{"href":"https://api.github.com/repos/rmosolgo/graphql-ruby/statuses/0a2a147fbcf6f36ef9baf072997c2599c41a4b40"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":13,"deletions":1,"changed_files":2}}