{"action":"created","comment":{"url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/pulls/comments/50632741","id":50632741,"diff_hunk":"@@ -193,7 +204,8 @@ export default function getType(graffitiModels, {name, description, fields}, pat\n     if (type === 'Array') {\n       if (subtype === 'Object') {\n         const fields = subfields;\n-        graphQLField.type = new GraphQLList(getType(graffitiModels, {name, description, fields}, newPath, rootType));\n+        const connectionName = getConnectionName(graphQLType.name, name);","path":"src/type/type.js","position":23,"original_position":23,"commit_id":"2d024881312ad15b30c1e5fea09ab32f0e04b04b","original_commit_id":"2d024881312ad15b30c1e5fea09ab32f0e04b04b","user":{"login":"tothandras","id":4157749,"avatar_url":"https://avatars.githubusercontent.com/u/4157749?v=3","gravatar_id":"","url":"https://api.github.com/users/tothandras","html_url":"https://github.com/tothandras","followers_url":"https://api.github.com/users/tothandras/followers","following_url":"https://api.github.com/users/tothandras/following{/other_user}","gists_url":"https://api.github.com/users/tothandras/gists{/gist_id}","starred_url":"https://api.github.com/users/tothandras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tothandras/subscriptions","organizations_url":"https://api.github.com/users/tothandras/orgs","repos_url":"https://api.github.com/users/tothandras/repos","events_url":"https://api.github.com/users/tothandras/events{/privacy}","received_events_url":"https://api.github.com/users/tothandras/received_events","type":"User","site_admin":false},"body":"These are not connections, but nested objects. Connections are based on references.","created_at":"2016-01-24T09:22:16Z","updated_at":"2016-01-24T09:22:16Z","html_url":"https://github.com/RisingStack/graffiti-mongoose/pull/86#discussion_r50632741","pull_request_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/pulls/86","_links":{"self":{"href":"https://api.github.com/repos/RisingStack/graffiti-mongoose/pulls/comments/50632741"},"html":{"href":"https://github.com/RisingStack/graffiti-mongoose/pull/86#discussion_r50632741"},"pull_request":{"href":"https://api.github.com/repos/RisingStack/graffiti-mongoose/pulls/86"}}},"pull_request":{"url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/pulls/86","id":56993160,"html_url":"https://github.com/RisingStack/graffiti-mongoose/pull/86","diff_url":"https://github.com/RisingStack/graffiti-mongoose/pull/86.diff","patch_url":"https://github.com/RisingStack/graffiti-mongoose/pull/86.patch","issue_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/86","number":86,"state":"open","locked":false,"title":"Fix conflict of connection name in different schemas","user":{"login":"sibeliusseraphini","id":2005841,"avatar_url":"https://avatars.githubusercontent.com/u/2005841?v=3","gravatar_id":"","url":"https://api.github.com/users/sibeliusseraphini","html_url":"https://github.com/sibeliusseraphini","followers_url":"https://api.github.com/users/sibeliusseraphini/followers","following_url":"https://api.github.com/users/sibeliusseraphini/following{/other_user}","gists_url":"https://api.github.com/users/sibeliusseraphini/gists{/gist_id}","starred_url":"https://api.github.com/users/sibeliusseraphini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sibeliusseraphini/subscriptions","organizations_url":"https://api.github.com/users/sibeliusseraphini/orgs","repos_url":"https://api.github.com/users/sibeliusseraphini/repos","events_url":"https://api.github.com/users/sibeliusseraphini/events{/privacy}","received_events_url":"https://api.github.com/users/sibeliusseraphini/received_events","type":"User","site_admin":false},"body":"This happens when two schemas have a field with the same name\r\nthat is a reference field\r\n\r\n- fix RisingStack/graffiti-mongoose#84","created_at":"2016-01-24T02:34:14Z","updated_at":"2016-01-24T09:22:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7cf345d9ef2a3a1ed889c12aa83adb24d342d74","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/pulls/86/commits","review_comments_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/pulls/86/comments","review_comment_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/86/comments","statuses_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/statuses/2d024881312ad15b30c1e5fea09ab32f0e04b04b","head":{"label":"sibeliusseraphini:fix/connectionName","ref":"fix/connectionName","sha":"2d024881312ad15b30c1e5fea09ab32f0e04b04b","user":{"login":"sibeliusseraphini","id":2005841,"avatar_url":"https://avatars.githubusercontent.com/u/2005841?v=3","gravatar_id":"","url":"https://api.github.com/users/sibeliusseraphini","html_url":"https://github.com/sibeliusseraphini","followers_url":"https://api.github.com/users/sibeliusseraphini/followers","following_url":"https://api.github.com/users/sibeliusseraphini/following{/other_user}","gists_url":"https://api.github.com/users/sibeliusseraphini/gists{/gist_id}","starred_url":"https://api.github.com/users/sibeliusseraphini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sibeliusseraphini/subscriptions","organizations_url":"https://api.github.com/users/sibeliusseraphini/orgs","repos_url":"https://api.github.com/users/sibeliusseraphini/repos","events_url":"https://api.github.com/users/sibeliusseraphini/events{/privacy}","received_events_url":"https://api.github.com/users/sibeliusseraphini/received_events","type":"User","site_admin":false},"repo":{"id":50254947,"name":"graffiti-mongoose","full_name":"sibeliusseraphini/graffiti-mongoose","owner":{"login":"sibeliusseraphini","id":2005841,"avatar_url":"https://avatars.githubusercontent.com/u/2005841?v=3","gravatar_id":"","url":"https://api.github.com/users/sibeliusseraphini","html_url":"https://github.com/sibeliusseraphini","followers_url":"https://api.github.com/users/sibeliusseraphini/followers","following_url":"https://api.github.com/users/sibeliusseraphini/following{/other_user}","gists_url":"https://api.github.com/users/sibeliusseraphini/gists{/gist_id}","starred_url":"https://api.github.com/users/sibeliusseraphini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sibeliusseraphini/subscriptions","organizations_url":"https://api.github.com/users/sibeliusseraphini/orgs","repos_url":"https://api.github.com/users/sibeliusseraphini/repos","events_url":"https://api.github.com/users/sibeliusseraphini/events{/privacy}","received_events_url":"https://api.github.com/users/sibeliusseraphini/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sibeliusseraphini/graffiti-mongoose","description":"Mongoose (MongoDB) adapter for graffiti (Node.js GraphQL ORM)","fork":true,"url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose","forks_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/forks","keys_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/teams","hooks_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/hooks","issue_events_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/issues/events{/number}","events_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/events","assignees_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/assignees{/user}","branches_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/branches{/branch}","tags_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/tags","blobs_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/git/refs{/sha}","trees_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/statuses/{sha}","languages_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/languages","stargazers_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/stargazers","contributors_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/contributors","subscribers_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/subscribers","subscription_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/subscription","commits_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/commits{/sha}","git_commits_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/git/commits{/sha}","comments_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/comments{/number}","issue_comment_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/issues/comments{/number}","contents_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/contents/{+path}","compare_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/merges","archive_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/downloads","issues_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/issues{/number}","pulls_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/pulls{/number}","milestones_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/milestones{/number}","notifications_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/labels{/name}","releases_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/releases{/id}","deployments_url":"https://api.github.com/repos/sibeliusseraphini/graffiti-mongoose/deployments","created_at":"2016-01-23T19:39:15Z","updated_at":"2016-01-23T19:39:16Z","pushed_at":"2016-01-24T02:33:02Z","git_url":"git://github.com/sibeliusseraphini/graffiti-mongoose.git","ssh_url":"git@github.com:sibeliusseraphini/graffiti-mongoose.git","clone_url":"https://github.com/sibeliusseraphini/graffiti-mongoose.git","svn_url":"https://github.com/sibeliusseraphini/graffiti-mongoose","homepage":"https://graffiti-todo.herokuapp.com","size":238,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"RisingStack:master","ref":"master","sha":"f9b92517231d59021c19b7810934c11979419cf5","user":{"login":"RisingStack","id":6916052,"avatar_url":"https://avatars.githubusercontent.com/u/6916052?v=3","gravatar_id":"","url":"https://api.github.com/users/RisingStack","html_url":"https://github.com/RisingStack","followers_url":"https://api.github.com/users/RisingStack/followers","following_url":"https://api.github.com/users/RisingStack/following{/other_user}","gists_url":"https://api.github.com/users/RisingStack/gists{/gist_id}","starred_url":"https://api.github.com/users/RisingStack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RisingStack/subscriptions","organizations_url":"https://api.github.com/users/RisingStack/orgs","repos_url":"https://api.github.com/users/RisingStack/repos","events_url":"https://api.github.com/users/RisingStack/events{/privacy}","received_events_url":"https://api.github.com/users/RisingStack/received_events","type":"Organization","site_admin":false},"repo":{"id":39296706,"name":"graffiti-mongoose","full_name":"RisingStack/graffiti-mongoose","owner":{"login":"RisingStack","id":6916052,"avatar_url":"https://avatars.githubusercontent.com/u/6916052?v=3","gravatar_id":"","url":"https://api.github.com/users/RisingStack","html_url":"https://github.com/RisingStack","followers_url":"https://api.github.com/users/RisingStack/followers","following_url":"https://api.github.com/users/RisingStack/following{/other_user}","gists_url":"https://api.github.com/users/RisingStack/gists{/gist_id}","starred_url":"https://api.github.com/users/RisingStack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RisingStack/subscriptions","organizations_url":"https://api.github.com/users/RisingStack/orgs","repos_url":"https://api.github.com/users/RisingStack/repos","events_url":"https://api.github.com/users/RisingStack/events{/privacy}","received_events_url":"https://api.github.com/users/RisingStack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RisingStack/graffiti-mongoose","description":"Mongoose (MongoDB) adapter for graffiti (Node.js GraphQL ORM)","fork":false,"url":"https://api.github.com/repos/RisingStack/graffiti-mongoose","forks_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/forks","keys_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/teams","hooks_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/hooks","issue_events_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/events{/number}","events_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/events","assignees_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/assignees{/user}","branches_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/branches{/branch}","tags_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/tags","blobs_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/git/refs{/sha}","trees_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/statuses/{sha}","languages_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/languages","stargazers_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/stargazers","contributors_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/contributors","subscribers_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/subscribers","subscription_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/subscription","commits_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/commits{/sha}","git_commits_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/git/commits{/sha}","comments_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/comments{/number}","issue_comment_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/comments{/number}","contents_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/contents/{+path}","compare_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/merges","archive_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/downloads","issues_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues{/number}","pulls_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/pulls{/number}","milestones_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/milestones{/number}","notifications_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/labels{/name}","releases_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/releases{/id}","deployments_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/deployments","created_at":"2015-07-18T11:51:51Z","updated_at":"2016-01-19T01:55:32Z","pushed_at":"2016-01-24T02:34:14Z","git_url":"git://github.com/RisingStack/graffiti-mongoose.git","ssh_url":"git@github.com:RisingStack/graffiti-mongoose.git","clone_url":"https://github.com/RisingStack/graffiti-mongoose.git","svn_url":"https://github.com/RisingStack/graffiti-mongoose","homepage":"https://graffiti-todo.herokuapp.com","size":252,"stargazers_count":138,"watchers_count":138,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":12,"forks":23,"open_issues":12,"watchers":138,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RisingStack/graffiti-mongoose/pulls/86"},"html":{"href":"https://github.com/RisingStack/graffiti-mongoose/pull/86"},"issue":{"href":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/86"},"comments":{"href":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/86/comments"},"review_comments":{"href":"https://api.github.com/repos/RisingStack/graffiti-mongoose/pulls/86/comments"},"review_comment":{"href":"https://api.github.com/repos/RisingStack/graffiti-mongoose/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RisingStack/graffiti-mongoose/pulls/86/commits"},"statuses":{"href":"https://api.github.com/repos/RisingStack/graffiti-mongoose/statuses/2d024881312ad15b30c1e5fea09ab32f0e04b04b"}}}}