{"action":"created","comment":{"url":"https://api.github.com/repos/kriasoft/graphql-sandbox/pulls/comments/59962291","id":59962291,"diff_hunk":"@@ -1,23 +1,67 @@\n # GraphQL Schema\n \n ```\n+type Location {\n+  city: String\n+  country: String\n+}\n+\n type User {\n-  id: ID!,\n-  name: String,\n-  email: String,\n-  picture(size: Int): Url,\n-  friends: [User]!\n+  id: String!\n+  name: String\n+  location: Location\n+  avatar(size: Int): Url,","path":"SCHEMA.md","position":18,"original_position":18,"commit_id":"87bb81a87d97ba4f54797e722cab4d56f6b86c8d","original_commit_id":"87bb81a87d97ba4f54797e722cab4d56f6b86c8d","user":{"login":"sogko","id":78585,"avatar_url":"https://avatars.githubusercontent.com/u/78585?v=3","gravatar_id":"","url":"https://api.github.com/users/sogko","html_url":"https://github.com/sogko","followers_url":"https://api.github.com/users/sogko/followers","following_url":"https://api.github.com/users/sogko/following{/other_user}","gists_url":"https://api.github.com/users/sogko/gists{/gist_id}","starred_url":"https://api.github.com/users/sogko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sogko/subscriptions","organizations_url":"https://api.github.com/users/sogko/orgs","repos_url":"https://api.github.com/users/sogko/repos","events_url":"https://api.github.com/users/sogko/events{/privacy}","received_events_url":"https://api.github.com/users/sogko/received_events","type":"User","site_admin":false},"body":"I'm assuming that `Url` is a custom defined Scalar type (which is great, it's one of the things we should cover)\r\n\r\nIf that is so, how about adding the following definition at the top:\r\n```\r\nscalar Url\r\n```\r\n\r\nThis is the shorthand notation for custom Scalar types.\r\n\r\nCheers!","created_at":"2016-04-16T04:28:24Z","updated_at":"2016-04-16T04:28:24Z","html_url":"https://github.com/kriasoft/graphql-sandbox/pull/2#discussion_r59962291","pull_request_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/kriasoft/graphql-sandbox/pulls/comments/59962291"},"html":{"href":"https://github.com/kriasoft/graphql-sandbox/pull/2#discussion_r59962291"},"pull_request":{"href":"https://api.github.com/repos/kriasoft/graphql-sandbox/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/kriasoft/graphql-sandbox/pulls/2","id":61124346,"html_url":"https://github.com/kriasoft/graphql-sandbox/pull/2","diff_url":"https://github.com/kriasoft/graphql-sandbox/pull/2.diff","patch_url":"https://github.com/kriasoft/graphql-sandbox/pull/2.patch","issue_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/issues/2","number":2,"state":"open","locked":false,"title":"A sample schema based on a blog","user":{"login":"JeffRMoore","id":479533,"avatar_url":"https://avatars.githubusercontent.com/u/479533?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffRMoore","html_url":"https://github.com/JeffRMoore","followers_url":"https://api.github.com/users/JeffRMoore/followers","following_url":"https://api.github.com/users/JeffRMoore/following{/other_user}","gists_url":"https://api.github.com/users/JeffRMoore/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffRMoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffRMoore/subscriptions","organizations_url":"https://api.github.com/users/JeffRMoore/orgs","repos_url":"https://api.github.com/users/JeffRMoore/repos","events_url":"https://api.github.com/users/JeffRMoore/events{/privacy}","received_events_url":"https://api.github.com/users/JeffRMoore/received_events","type":"User","site_admin":false},"body":"I started developing this schema to teach myself graphql and to understand how one would tackle various data mapping issues when writing a backend.\r\n\r\nThis one has a many to many relationship, dependent objects, deep nesting of objects, an abstract type and a date value.\r\n\r\nI'd guess to meet the criteria of #1 It would need to be augmented with a union type, float, int and ID?  This doesn't have pagination, which should be added.\r\n\r\nI think the name of the Topic type is confusing with respect to Category, but couldn't think of anything better.  I do like the name activity as a query operation.\r\n\r\nNote this isn't complete and probably doesn't even validate syntax-wise.  ","created_at":"2016-02-29T18:46:45Z","updated_at":"2016-04-16T04:28:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c409218183161d77fc06b099f5d3a32f465b228","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/pulls/2/commits","review_comments_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/pulls/2/comments","review_comment_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/issues/2/comments","statuses_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/statuses/87bb81a87d97ba4f54797e722cab4d56f6b86c8d","head":{"label":"JeffRMoore:master","ref":"master","sha":"87bb81a87d97ba4f54797e722cab4d56f6b86c8d","user":{"login":"JeffRMoore","id":479533,"avatar_url":"https://avatars.githubusercontent.com/u/479533?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffRMoore","html_url":"https://github.com/JeffRMoore","followers_url":"https://api.github.com/users/JeffRMoore/followers","following_url":"https://api.github.com/users/JeffRMoore/following{/other_user}","gists_url":"https://api.github.com/users/JeffRMoore/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffRMoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffRMoore/subscriptions","organizations_url":"https://api.github.com/users/JeffRMoore/orgs","repos_url":"https://api.github.com/users/JeffRMoore/repos","events_url":"https://api.github.com/users/JeffRMoore/events{/privacy}","received_events_url":"https://api.github.com/users/JeffRMoore/received_events","type":"User","site_admin":false},"repo":{"id":52813120,"name":"graphql-sandbox","full_name":"JeffRMoore/graphql-sandbox","owner":{"login":"JeffRMoore","id":479533,"avatar_url":"https://avatars.githubusercontent.com/u/479533?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffRMoore","html_url":"https://github.com/JeffRMoore","followers_url":"https://api.github.com/users/JeffRMoore/followers","following_url":"https://api.github.com/users/JeffRMoore/following{/other_user}","gists_url":"https://api.github.com/users/JeffRMoore/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffRMoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffRMoore/subscriptions","organizations_url":"https://api.github.com/users/JeffRMoore/orgs","repos_url":"https://api.github.com/users/JeffRMoore/repos","events_url":"https://api.github.com/users/JeffRMoore/events{/privacy}","received_events_url":"https://api.github.com/users/JeffRMoore/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JeffRMoore/graphql-sandbox","description":"Helping you to learn how a GraphQL server using the same schema may look like implemented with different solution stacks. Want to showcase your work? Just fork this repo, implement a GraphQL server by using the provided schema, sample dataset, and make sure it passes all the tests included in this repo.","fork":true,"url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox","forks_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/forks","keys_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/teams","hooks_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/hooks","issue_events_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/events","assignees_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/tags","blobs_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/languages","stargazers_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/stargazers","contributors_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/contributors","subscribers_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/subscribers","subscription_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/subscription","commits_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/merges","archive_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/downloads","issues_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/labels{/name}","releases_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/releases{/id}","deployments_url":"https://api.github.com/repos/JeffRMoore/graphql-sandbox/deployments","created_at":"2016-02-29T18:22:44Z","updated_at":"2016-02-29T18:22:45Z","pushed_at":"2016-02-29T18:43:59Z","git_url":"git://github.com/JeffRMoore/graphql-sandbox.git","ssh_url":"git@github.com:JeffRMoore/graphql-sandbox.git","clone_url":"https://github.com/JeffRMoore/graphql-sandbox.git","svn_url":"https://github.com/JeffRMoore/graphql-sandbox","homepage":"https://graphqlsandbox.com","size":9,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"kriasoft:master","ref":"master","sha":"82b48e13845e0b71f3359ce3cdacd3cd1b46fd57","user":{"login":"kriasoft","id":773036,"avatar_url":"https://avatars.githubusercontent.com/u/773036?v=3","gravatar_id":"","url":"https://api.github.com/users/kriasoft","html_url":"https://github.com/kriasoft","followers_url":"https://api.github.com/users/kriasoft/followers","following_url":"https://api.github.com/users/kriasoft/following{/other_user}","gists_url":"https://api.github.com/users/kriasoft/gists{/gist_id}","starred_url":"https://api.github.com/users/kriasoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kriasoft/subscriptions","organizations_url":"https://api.github.com/users/kriasoft/orgs","repos_url":"https://api.github.com/users/kriasoft/repos","events_url":"https://api.github.com/users/kriasoft/events{/privacy}","received_events_url":"https://api.github.com/users/kriasoft/received_events","type":"Organization","site_admin":false},"repo":{"id":52716305,"name":"graphql-sandbox","full_name":"kriasoft/graphql-sandbox","owner":{"login":"kriasoft","id":773036,"avatar_url":"https://avatars.githubusercontent.com/u/773036?v=3","gravatar_id":"","url":"https://api.github.com/users/kriasoft","html_url":"https://github.com/kriasoft","followers_url":"https://api.github.com/users/kriasoft/followers","following_url":"https://api.github.com/users/kriasoft/following{/other_user}","gists_url":"https://api.github.com/users/kriasoft/gists{/gist_id}","starred_url":"https://api.github.com/users/kriasoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kriasoft/subscriptions","organizations_url":"https://api.github.com/users/kriasoft/orgs","repos_url":"https://api.github.com/users/kriasoft/repos","events_url":"https://api.github.com/users/kriasoft/events{/privacy}","received_events_url":"https://api.github.com/users/kriasoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kriasoft/graphql-sandbox","description":"Helping you to learn how a GraphQL server using the same schema may look like implemented with different solution stacks. Want to showcase your work? Just fork this repo, implement a GraphQL server by using the provided schema, sample dataset, and make sure it passes all the tests included in this repo.","fork":false,"url":"https://api.github.com/repos/kriasoft/graphql-sandbox","forks_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/forks","keys_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/teams","hooks_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/hooks","issue_events_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/events","assignees_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/tags","blobs_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/languages","stargazers_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/stargazers","contributors_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/contributors","subscribers_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/subscribers","subscription_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/subscription","commits_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/merges","archive_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/downloads","issues_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/labels{/name}","releases_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/releases{/id}","deployments_url":"https://api.github.com/repos/kriasoft/graphql-sandbox/deployments","created_at":"2016-02-28T10:41:57Z","updated_at":"2016-04-15T06:47:52Z","pushed_at":"2016-02-29T18:46:45Z","git_url":"git://github.com/kriasoft/graphql-sandbox.git","ssh_url":"git@github.com:kriasoft/graphql-sandbox.git","clone_url":"https://github.com/kriasoft/graphql-sandbox.git","svn_url":"https://github.com/kriasoft/graphql-sandbox","homepage":"https://graphqlsandbox.com","size":7,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kriasoft/graphql-sandbox/pulls/2"},"html":{"href":"https://github.com/kriasoft/graphql-sandbox/pull/2"},"issue":{"href":"https://api.github.com/repos/kriasoft/graphql-sandbox/issues/2"},"comments":{"href":"https://api.github.com/repos/kriasoft/graphql-sandbox/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/kriasoft/graphql-sandbox/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/kriasoft/graphql-sandbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kriasoft/graphql-sandbox/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/kriasoft/graphql-sandbox/statuses/87bb81a87d97ba4f54797e722cab4d56f6b86c8d"}}}}