{"action":"opened","number":30,"pull_request":{"url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/pulls/30","id":63513207,"html_url":"https://github.com/rmosolgo/graphql-relay-ruby/pull/30","diff_url":"https://github.com/rmosolgo/graphql-relay-ruby/pull/30.diff","patch_url":"https://github.com/rmosolgo/graphql-relay-ruby/pull/30.patch","issue_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/issues/30","number":30,"state":"open","locked":false,"title":"Support custom edge fields","user":{"login":"xuorig","id":1919498,"avatar_url":"https://avatars.githubusercontent.com/u/1919498?v=3","gravatar_id":"","url":"https://api.github.com/users/xuorig","html_url":"https://github.com/xuorig","followers_url":"https://api.github.com/users/xuorig/followers","following_url":"https://api.github.com/users/xuorig/following{/other_user}","gists_url":"https://api.github.com/users/xuorig/gists{/gist_id}","starred_url":"https://api.github.com/users/xuorig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuorig/subscriptions","organizations_url":"https://api.github.com/users/xuorig/orgs","repos_url":"https://api.github.com/users/xuorig/repos","events_url":"https://api.github.com/users/xuorig/events{/privacy}","received_events_url":"https://api.github.com/users/xuorig/received_events","type":"User","site_admin":false},"body":"Support for adding custom fields to edges.\r\n\r\n```\r\nShipEdgeType = GraphQL::Relay::Edge.create_type(Ship) do\r\n  field :since do\r\n    type types.String\r\n    resolve -> (_, _, _) { 'forever' }\r\n  end\r\nend\r\n```\r\n\r\nExtends DSL to `Edge.create_type` so you can pass a config block, and allows connections to pass an `edge_type` arg to specify which edge type should be used.\r\n\r\n\r\nI'll write some doc once we're sure about the implementation!\r\n","created_at":"2016-03-21T00:33:34Z","updated_at":"2016-03-21T00:33:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/pulls/30/commits","review_comments_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/pulls/30/comments","review_comment_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/issues/30/comments","statuses_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/statuses/8e3bfbc87a07be9c9c58ce9cde9dd74bbd896dcb","head":{"label":"xuorig:custom-edge-fields","ref":"custom-edge-fields","sha":"8e3bfbc87a07be9c9c58ce9cde9dd74bbd896dcb","user":{"login":"xuorig","id":1919498,"avatar_url":"https://avatars.githubusercontent.com/u/1919498?v=3","gravatar_id":"","url":"https://api.github.com/users/xuorig","html_url":"https://github.com/xuorig","followers_url":"https://api.github.com/users/xuorig/followers","following_url":"https://api.github.com/users/xuorig/following{/other_user}","gists_url":"https://api.github.com/users/xuorig/gists{/gist_id}","starred_url":"https://api.github.com/users/xuorig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuorig/subscriptions","organizations_url":"https://api.github.com/users/xuorig/orgs","repos_url":"https://api.github.com/users/xuorig/repos","events_url":"https://api.github.com/users/xuorig/events{/privacy}","received_events_url":"https://api.github.com/users/xuorig/received_events","type":"User","site_admin":false},"repo":{"id":45848692,"name":"graphql-relay-ruby","full_name":"xuorig/graphql-relay-ruby","owner":{"login":"xuorig","id":1919498,"avatar_url":"https://avatars.githubusercontent.com/u/1919498?v=3","gravatar_id":"","url":"https://api.github.com/users/xuorig","html_url":"https://github.com/xuorig","followers_url":"https://api.github.com/users/xuorig/followers","following_url":"https://api.github.com/users/xuorig/following{/other_user}","gists_url":"https://api.github.com/users/xuorig/gists{/gist_id}","starred_url":"https://api.github.com/users/xuorig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuorig/subscriptions","organizations_url":"https://api.github.com/users/xuorig/orgs","repos_url":"https://api.github.com/users/xuorig/repos","events_url":"https://api.github.com/users/xuorig/events{/privacy}","received_events_url":"https://api.github.com/users/xuorig/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xuorig/graphql-relay-ruby","description":"Relay helpers for GraphQL & Ruby","fork":true,"url":"https://api.github.com/repos/xuorig/graphql-relay-ruby","forks_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/forks","keys_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/teams","hooks_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/hooks","issue_events_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/events","assignees_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/tags","blobs_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/languages","stargazers_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/stargazers","contributors_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/contributors","subscribers_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/subscribers","subscription_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/subscription","commits_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/merges","archive_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/downloads","issues_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/labels{/name}","releases_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/xuorig/graphql-relay-ruby/deployments","created_at":"2015-11-09T15:53:58Z","updated_at":"2015-11-09T15:53:59Z","pushed_at":"2016-03-21T00:26:55Z","git_url":"git://github.com/xuorig/graphql-relay-ruby.git","ssh_url":"git@github.com:xuorig/graphql-relay-ruby.git","clone_url":"https://github.com/xuorig/graphql-relay-ruby.git","svn_url":"https://github.com/xuorig/graphql-relay-ruby","homepage":null,"size":114,"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":"1c0138b18604ea9a9b67b33cded09c09e4df219b","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":40828842,"name":"graphql-relay-ruby","full_name":"rmosolgo/graphql-relay-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-relay-ruby","description":"Relay helpers for GraphQL & Ruby","fork":false,"url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby","forks_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/forks","keys_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/teams","hooks_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/hooks","issue_events_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/events","assignees_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/tags","blobs_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/languages","stargazers_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/stargazers","contributors_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/contributors","subscribers_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/subscribers","subscription_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/subscription","commits_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/merges","archive_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/downloads","issues_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/labels{/name}","releases_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/deployments","created_at":"2015-08-16T16:49:54Z","updated_at":"2016-03-20T11:43:05Z","pushed_at":"2016-03-18T21:56:18Z","git_url":"git://github.com/rmosolgo/graphql-relay-ruby.git","ssh_url":"git@github.com:rmosolgo/graphql-relay-ruby.git","clone_url":"https://github.com/rmosolgo/graphql-relay-ruby.git","svn_url":"https://github.com/rmosolgo/graphql-relay-ruby","homepage":null,"size":114,"stargazers_count":69,"watchers_count":69,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":8,"forks":20,"open_issues":8,"watchers":69,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/pulls/30"},"html":{"href":"https://github.com/rmosolgo/graphql-relay-ruby/pull/30"},"issue":{"href":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/issues/30"},"comments":{"href":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/rmosolgo/graphql-relay-ruby/statuses/8e3bfbc87a07be9c9c58ce9cde9dd74bbd896dcb"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":21,"deletions":8,"changed_files":5}}