{"action":"created","comment":{"url":"https://api.github.com/repos/GraphqlBA/oradorapp/pulls/comments/90745236","pull_request_review_id":11266292,"id":90745236,"diff_hunk":"@@ -12,10 +13,49 @@ const speakers = [\n   }\n ];\n \n+const talks = [\n+  {\n+    id: 1,\n+    title: 'Un titulo',\n+    description: 'Una descripcion'\n+  }\n+];\n+\n const resolvers = {\n+  Node: {\n+    __resolveType(data, context, info) {\n+      if (data.firstName) {\n+        return info.schema.getType('Speaker');\n+      }\n+      if (data.title) {\n+        return info.schema.getType('Talk');\n+      }\n+      return null;\n+    }\n+  },\n+  Speaker: {\n+    id: speaker => toGlobalId('Speaker', speaker.id)\n+  },\n+  Talk: {\n+    id: talk => toGlobalId('Talk', talk.id)\n+  },\n   Query: {\n     speakers(root, args) {\n       return connectionFromArray(speakers, args);\n+    },\n+    talks(root, args) {\n+      return connectionFromArray(talks, args);\n+    },\n+    node(root, args) {\n+      const { type, id } = fromGlobalId(args.id);\n+      switch (type) {\n+        case 'Speaker':\n+          return speakers.find(s => s.id === +id);","path":"server/resolvers.js","position":51,"original_position":51,"commit_id":"b0538054f6f00ab1a09ef9c72492ab4cb59abfdf","original_commit_id":"b0538054f6f00ab1a09ef9c72492ab4cb59abfdf","user":{"login":"p4bloch","id":3620912,"avatar_url":"https://avatars.githubusercontent.com/u/3620912?v=3","gravatar_id":"","url":"https://api.github.com/users/p4bloch","html_url":"https://github.com/p4bloch","followers_url":"https://api.github.com/users/p4bloch/followers","following_url":"https://api.github.com/users/p4bloch/following{/other_user}","gists_url":"https://api.github.com/users/p4bloch/gists{/gist_id}","starred_url":"https://api.github.com/users/p4bloch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p4bloch/subscriptions","organizations_url":"https://api.github.com/users/p4bloch/orgs","repos_url":"https://api.github.com/users/p4bloch/repos","events_url":"https://api.github.com/users/p4bloch/events{/privacy}","received_events_url":"https://api.github.com/users/p4bloch/received_events","type":"User","site_admin":false},"body":"Pregunta de curioso: cuál es la ventaja de usar +id? Entiendo que hace una especie de casteo a number por lo que acabo de buscar (no lo junaba).","created_at":"2016-12-03T01:01:18Z","updated_at":"2016-12-03T01:01:18Z","html_url":"https://github.com/GraphqlBA/oradorapp/pull/5#discussion_r90745236","pull_request_url":"https://api.github.com/repos/GraphqlBA/oradorapp/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/GraphqlBA/oradorapp/pulls/comments/90745236"},"html":{"href":"https://github.com/GraphqlBA/oradorapp/pull/5#discussion_r90745236"},"pull_request":{"href":"https://api.github.com/repos/GraphqlBA/oradorapp/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/GraphqlBA/oradorapp/pulls/5","id":96353816,"html_url":"https://github.com/GraphqlBA/oradorapp/pull/5","diff_url":"https://github.com/GraphqlBA/oradorapp/pull/5.diff","patch_url":"https://github.com/GraphqlBA/oradorapp/pull/5.patch","issue_url":"https://api.github.com/repos/GraphqlBA/oradorapp/issues/5","number":5,"state":"open","locked":false,"title":"Agregar mas datos al schema y poder exportar json","user":{"login":"leoasis","id":328001,"avatar_url":"https://avatars.githubusercontent.com/u/328001?v=3","gravatar_id":"","url":"https://api.github.com/users/leoasis","html_url":"https://github.com/leoasis","followers_url":"https://api.github.com/users/leoasis/followers","following_url":"https://api.github.com/users/leoasis/following{/other_user}","gists_url":"https://api.github.com/users/leoasis/gists{/gist_id}","starred_url":"https://api.github.com/users/leoasis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leoasis/subscriptions","organizations_url":"https://api.github.com/users/leoasis/orgs","repos_url":"https://api.github.com/users/leoasis/repos","events_url":"https://api.github.com/users/leoasis/events{/privacy}","received_events_url":"https://api.github.com/users/leoasis/received_events","type":"User","site_admin":false},"body":"Agrega un par de datos extra al schema (en particular la interfaz Node para las entidades). Tambien muevo el schema y el dev server adentro de la carpeta de server, y agrego un script para generar el schema.json a partir del schema (necesario para usar Relay en el cliente)","created_at":"2016-12-02T21:14:24Z","updated_at":"2016-12-03T01:01:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1e94df76ea1cd8ba37feab4fe6570464deb1882","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/GraphqlBA/oradorapp/pulls/5/commits","review_comments_url":"https://api.github.com/repos/GraphqlBA/oradorapp/pulls/5/comments","review_comment_url":"https://api.github.com/repos/GraphqlBA/oradorapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GraphqlBA/oradorapp/issues/5/comments","statuses_url":"https://api.github.com/repos/GraphqlBA/oradorapp/statuses/b0538054f6f00ab1a09ef9c72492ab4cb59abfdf","head":{"label":"GraphqlBA:node_en_schema_y_export_schema_json","ref":"node_en_schema_y_export_schema_json","sha":"b0538054f6f00ab1a09ef9c72492ab4cb59abfdf","user":{"login":"GraphqlBA","id":23700880,"avatar_url":"https://avatars.githubusercontent.com/u/23700880?v=3","gravatar_id":"","url":"https://api.github.com/users/GraphqlBA","html_url":"https://github.com/GraphqlBA","followers_url":"https://api.github.com/users/GraphqlBA/followers","following_url":"https://api.github.com/users/GraphqlBA/following{/other_user}","gists_url":"https://api.github.com/users/GraphqlBA/gists{/gist_id}","starred_url":"https://api.github.com/users/GraphqlBA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GraphqlBA/subscriptions","organizations_url":"https://api.github.com/users/GraphqlBA/orgs","repos_url":"https://api.github.com/users/GraphqlBA/repos","events_url":"https://api.github.com/users/GraphqlBA/events{/privacy}","received_events_url":"https://api.github.com/users/GraphqlBA/received_events","type":"Organization","site_admin":false},"repo":{"id":74609122,"name":"oradorapp","full_name":"GraphqlBA/oradorapp","owner":{"login":"GraphqlBA","id":23700880,"avatar_url":"https://avatars.githubusercontent.com/u/23700880?v=3","gravatar_id":"","url":"https://api.github.com/users/GraphqlBA","html_url":"https://github.com/GraphqlBA","followers_url":"https://api.github.com/users/GraphqlBA/followers","following_url":"https://api.github.com/users/GraphqlBA/following{/other_user}","gists_url":"https://api.github.com/users/GraphqlBA/gists{/gist_id}","starred_url":"https://api.github.com/users/GraphqlBA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GraphqlBA/subscriptions","organizations_url":"https://api.github.com/users/GraphqlBA/orgs","repos_url":"https://api.github.com/users/GraphqlBA/repos","events_url":"https://api.github.com/users/GraphqlBA/events{/privacy}","received_events_url":"https://api.github.com/users/GraphqlBA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GraphqlBA/oradorapp","description":"App para ver oradores de eventos y meetups locales. Ejemplo de uso de las APIs de Relay y Apollo en una misma app","fork":false,"url":"https://api.github.com/repos/GraphqlBA/oradorapp","forks_url":"https://api.github.com/repos/GraphqlBA/oradorapp/forks","keys_url":"https://api.github.com/repos/GraphqlBA/oradorapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GraphqlBA/oradorapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GraphqlBA/oradorapp/teams","hooks_url":"https://api.github.com/repos/GraphqlBA/oradorapp/hooks","issue_events_url":"https://api.github.com/repos/GraphqlBA/oradorapp/issues/events{/number}","events_url":"https://api.github.com/repos/GraphqlBA/oradorapp/events","assignees_url":"https://api.github.com/repos/GraphqlBA/oradorapp/assignees{/user}","branches_url":"https://api.github.com/repos/GraphqlBA/oradorapp/branches{/branch}","tags_url":"https://api.github.com/repos/GraphqlBA/oradorapp/tags","blobs_url":"https://api.github.com/repos/GraphqlBA/oradorapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GraphqlBA/oradorapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GraphqlBA/oradorapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/GraphqlBA/oradorapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GraphqlBA/oradorapp/statuses/{sha}","languages_url":"https://api.github.com/repos/GraphqlBA/oradorapp/languages","stargazers_url":"https://api.github.com/repos/GraphqlBA/oradorapp/stargazers","contributors_url":"https://api.github.com/repos/GraphqlBA/oradorapp/contributors","subscribers_url":"https://api.github.com/repos/GraphqlBA/oradorapp/subscribers","subscription_url":"https://api.github.com/repos/GraphqlBA/oradorapp/subscription","commits_url":"https://api.github.com/repos/GraphqlBA/oradorapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/GraphqlBA/oradorapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/GraphqlBA/oradorapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/GraphqlBA/oradorapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/GraphqlBA/oradorapp/contents/{+path}","compare_url":"https://api.github.com/repos/GraphqlBA/oradorapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GraphqlBA/oradorapp/merges","archive_url":"https://api.github.com/repos/GraphqlBA/oradorapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GraphqlBA/oradorapp/downloads","issues_url":"https://api.github.com/repos/GraphqlBA/oradorapp/issues{/number}","pulls_url":"https://api.github.com/repos/GraphqlBA/oradorapp/pulls{/number}","milestones_url":"https://api.github.com/repos/GraphqlBA/oradorapp/milestones{/number}","notifications_url":"https://api.github.com/repos/GraphqlBA/oradorapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GraphqlBA/oradorapp/labels{/name}","releases_url":"https://api.github.com/repos/GraphqlBA/oradorapp/releases{/id}","deployments_url":"https://api.github.com/repos/GraphqlBA/oradorapp/deployments","created_at":"2016-11-23T19:50:19Z","updated_at":"2016-11-23T21:17:30Z","pushed_at":"2016-12-02T21:14:24Z","git_url":"git://github.com/GraphqlBA/oradorapp.git","ssh_url":"git@github.com:GraphqlBA/oradorapp.git","clone_url":"https://github.com/GraphqlBA/oradorapp.git","svn_url":"https://github.com/GraphqlBA/oradorapp","homepage":null,"size":110,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"GraphqlBA:master","ref":"master","sha":"bc293270e917427def64dbaf91f921b0ed68b427","user":{"login":"GraphqlBA","id":23700880,"avatar_url":"https://avatars.githubusercontent.com/u/23700880?v=3","gravatar_id":"","url":"https://api.github.com/users/GraphqlBA","html_url":"https://github.com/GraphqlBA","followers_url":"https://api.github.com/users/GraphqlBA/followers","following_url":"https://api.github.com/users/GraphqlBA/following{/other_user}","gists_url":"https://api.github.com/users/GraphqlBA/gists{/gist_id}","starred_url":"https://api.github.com/users/GraphqlBA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GraphqlBA/subscriptions","organizations_url":"https://api.github.com/users/GraphqlBA/orgs","repos_url":"https://api.github.com/users/GraphqlBA/repos","events_url":"https://api.github.com/users/GraphqlBA/events{/privacy}","received_events_url":"https://api.github.com/users/GraphqlBA/received_events","type":"Organization","site_admin":false},"repo":{"id":74609122,"name":"oradorapp","full_name":"GraphqlBA/oradorapp","owner":{"login":"GraphqlBA","id":23700880,"avatar_url":"https://avatars.githubusercontent.com/u/23700880?v=3","gravatar_id":"","url":"https://api.github.com/users/GraphqlBA","html_url":"https://github.com/GraphqlBA","followers_url":"https://api.github.com/users/GraphqlBA/followers","following_url":"https://api.github.com/users/GraphqlBA/following{/other_user}","gists_url":"https://api.github.com/users/GraphqlBA/gists{/gist_id}","starred_url":"https://api.github.com/users/GraphqlBA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GraphqlBA/subscriptions","organizations_url":"https://api.github.com/users/GraphqlBA/orgs","repos_url":"https://api.github.com/users/GraphqlBA/repos","events_url":"https://api.github.com/users/GraphqlBA/events{/privacy}","received_events_url":"https://api.github.com/users/GraphqlBA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GraphqlBA/oradorapp","description":"App para ver oradores de eventos y meetups locales. Ejemplo de uso de las APIs de Relay y Apollo en una misma app","fork":false,"url":"https://api.github.com/repos/GraphqlBA/oradorapp","forks_url":"https://api.github.com/repos/GraphqlBA/oradorapp/forks","keys_url":"https://api.github.com/repos/GraphqlBA/oradorapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GraphqlBA/oradorapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GraphqlBA/oradorapp/teams","hooks_url":"https://api.github.com/repos/GraphqlBA/oradorapp/hooks","issue_events_url":"https://api.github.com/repos/GraphqlBA/oradorapp/issues/events{/number}","events_url":"https://api.github.com/repos/GraphqlBA/oradorapp/events","assignees_url":"https://api.github.com/repos/GraphqlBA/oradorapp/assignees{/user}","branches_url":"https://api.github.com/repos/GraphqlBA/oradorapp/branches{/branch}","tags_url":"https://api.github.com/repos/GraphqlBA/oradorapp/tags","blobs_url":"https://api.github.com/repos/GraphqlBA/oradorapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GraphqlBA/oradorapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GraphqlBA/oradorapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/GraphqlBA/oradorapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GraphqlBA/oradorapp/statuses/{sha}","languages_url":"https://api.github.com/repos/GraphqlBA/oradorapp/languages","stargazers_url":"https://api.github.com/repos/GraphqlBA/oradorapp/stargazers","contributors_url":"https://api.github.com/repos/GraphqlBA/oradorapp/contributors","subscribers_url":"https://api.github.com/repos/GraphqlBA/oradorapp/subscribers","subscription_url":"https://api.github.com/repos/GraphqlBA/oradorapp/subscription","commits_url":"https://api.github.com/repos/GraphqlBA/oradorapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/GraphqlBA/oradorapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/GraphqlBA/oradorapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/GraphqlBA/oradorapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/GraphqlBA/oradorapp/contents/{+path}","compare_url":"https://api.github.com/repos/GraphqlBA/oradorapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GraphqlBA/oradorapp/merges","archive_url":"https://api.github.com/repos/GraphqlBA/oradorapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GraphqlBA/oradorapp/downloads","issues_url":"https://api.github.com/repos/GraphqlBA/oradorapp/issues{/number}","pulls_url":"https://api.github.com/repos/GraphqlBA/oradorapp/pulls{/number}","milestones_url":"https://api.github.com/repos/GraphqlBA/oradorapp/milestones{/number}","notifications_url":"https://api.github.com/repos/GraphqlBA/oradorapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GraphqlBA/oradorapp/labels{/name}","releases_url":"https://api.github.com/repos/GraphqlBA/oradorapp/releases{/id}","deployments_url":"https://api.github.com/repos/GraphqlBA/oradorapp/deployments","created_at":"2016-11-23T19:50:19Z","updated_at":"2016-11-23T21:17:30Z","pushed_at":"2016-12-02T21:14:24Z","git_url":"git://github.com/GraphqlBA/oradorapp.git","ssh_url":"git@github.com:GraphqlBA/oradorapp.git","clone_url":"https://github.com/GraphqlBA/oradorapp.git","svn_url":"https://github.com/GraphqlBA/oradorapp","homepage":null,"size":110,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GraphqlBA/oradorapp/pulls/5"},"html":{"href":"https://github.com/GraphqlBA/oradorapp/pull/5"},"issue":{"href":"https://api.github.com/repos/GraphqlBA/oradorapp/issues/5"},"comments":{"href":"https://api.github.com/repos/GraphqlBA/oradorapp/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/GraphqlBA/oradorapp/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/GraphqlBA/oradorapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GraphqlBA/oradorapp/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/GraphqlBA/oradorapp/statuses/b0538054f6f00ab1a09ef9c72492ab4cb59abfdf"}}}}
{"actor":{"display_login":"p4bloch"}}