{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/profmcdan/graphql-learn/pulls/4","id":234662524,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0NjYyNTI0","html_url":"https://github.com/profmcdan/graphql-learn/pull/4","diff_url":"https://github.com/profmcdan/graphql-learn/pull/4.diff","patch_url":"https://github.com/profmcdan/graphql-learn/pull/4.patch","issue_url":"https://api.github.com/repos/profmcdan/graphql-learn/issues/4","number":4,"state":"open","locked":false,"title":"More Mutations and Updating the Store","user":{"login":"profmcdan","id":22466440,"node_id":"MDQ6VXNlcjIyNDY2NDQw","avatar_url":"https://avatars0.githubusercontent.com/u/22466440?v=4","gravatar_id":"","url":"https://api.github.com/users/profmcdan","html_url":"https://github.com/profmcdan","followers_url":"https://api.github.com/users/profmcdan/followers","following_url":"https://api.github.com/users/profmcdan/following{/other_user}","gists_url":"https://api.github.com/users/profmcdan/gists{/gist_id}","starred_url":"https://api.github.com/users/profmcdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/profmcdan/subscriptions","organizations_url":"https://api.github.com/users/profmcdan/orgs","repos_url":"https://api.github.com/users/profmcdan/repos","events_url":"https://api.github.com/users/profmcdan/events{/privacy}","received_events_url":"https://api.github.com/users/profmcdan/received_events","type":"User","site_admin":false},"body":"What’s going on here?\r\n\r\n1. You start by reading the current state of the cached data for the FEED_QUERY from the store.\r\n2. Now you’re retrieving the link that the user just voted for from that list. You’re also manipulating that link by resetting its votes to the votes that were just returned by the server.\r\n3. Finally, you take the modified data and write it back into the store.\r\n\r\nNext you need to pass this function down to the Link so it can be called from there.","created_at":"2018-11-29T14:41:44Z","updated_at":"2018-11-29T14:41:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/profmcdan/graphql-learn/pulls/4/commits","review_comments_url":"https://api.github.com/repos/profmcdan/graphql-learn/pulls/4/comments","review_comment_url":"https://api.github.com/repos/profmcdan/graphql-learn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/profmcdan/graphql-learn/issues/4/comments","statuses_url":"https://api.github.com/repos/profmcdan/graphql-learn/statuses/d525b465089658206f2e9365810a964cc81fe028","head":{"label":"profmcdan:more-mutation","ref":"more-mutation","sha":"d525b465089658206f2e9365810a964cc81fe028","user":{"login":"profmcdan","id":22466440,"node_id":"MDQ6VXNlcjIyNDY2NDQw","avatar_url":"https://avatars0.githubusercontent.com/u/22466440?v=4","gravatar_id":"","url":"https://api.github.com/users/profmcdan","html_url":"https://github.com/profmcdan","followers_url":"https://api.github.com/users/profmcdan/followers","following_url":"https://api.github.com/users/profmcdan/following{/other_user}","gists_url":"https://api.github.com/users/profmcdan/gists{/gist_id}","starred_url":"https://api.github.com/users/profmcdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/profmcdan/subscriptions","organizations_url":"https://api.github.com/users/profmcdan/orgs","repos_url":"https://api.github.com/users/profmcdan/repos","events_url":"https://api.github.com/users/profmcdan/events{/privacy}","received_events_url":"https://api.github.com/users/profmcdan/received_events","type":"User","site_admin":false},"repo":{"id":159650140,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk2NTAxNDA=","name":"graphql-learn","full_name":"profmcdan/graphql-learn","private":false,"owner":{"login":"profmcdan","id":22466440,"node_id":"MDQ6VXNlcjIyNDY2NDQw","avatar_url":"https://avatars0.githubusercontent.com/u/22466440?v=4","gravatar_id":"","url":"https://api.github.com/users/profmcdan","html_url":"https://github.com/profmcdan","followers_url":"https://api.github.com/users/profmcdan/followers","following_url":"https://api.github.com/users/profmcdan/following{/other_user}","gists_url":"https://api.github.com/users/profmcdan/gists{/gist_id}","starred_url":"https://api.github.com/users/profmcdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/profmcdan/subscriptions","organizations_url":"https://api.github.com/users/profmcdan/orgs","repos_url":"https://api.github.com/users/profmcdan/repos","events_url":"https://api.github.com/users/profmcdan/events{/privacy}","received_events_url":"https://api.github.com/users/profmcdan/received_events","type":"User","site_admin":false},"html_url":"https://github.com/profmcdan/graphql-learn","description":"GraphQL, Prisma, Apollo and React","fork":false,"url":"https://api.github.com/repos/profmcdan/graphql-learn","forks_url":"https://api.github.com/repos/profmcdan/graphql-learn/forks","keys_url":"https://api.github.com/repos/profmcdan/graphql-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/profmcdan/graphql-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/profmcdan/graphql-learn/teams","hooks_url":"https://api.github.com/repos/profmcdan/graphql-learn/hooks","issue_events_url":"https://api.github.com/repos/profmcdan/graphql-learn/issues/events{/number}","events_url":"https://api.github.com/repos/profmcdan/graphql-learn/events","assignees_url":"https://api.github.com/repos/profmcdan/graphql-learn/assignees{/user}","branches_url":"https://api.github.com/repos/profmcdan/graphql-learn/branches{/branch}","tags_url":"https://api.github.com/repos/profmcdan/graphql-learn/tags","blobs_url":"https://api.github.com/repos/profmcdan/graphql-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/profmcdan/graphql-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/profmcdan/graphql-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/profmcdan/graphql-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/profmcdan/graphql-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/profmcdan/graphql-learn/languages","stargazers_url":"https://api.github.com/repos/profmcdan/graphql-learn/stargazers","contributors_url":"https://api.github.com/repos/profmcdan/graphql-learn/contributors","subscribers_url":"https://api.github.com/repos/profmcdan/graphql-learn/subscribers","subscription_url":"https://api.github.com/repos/profmcdan/graphql-learn/subscription","commits_url":"https://api.github.com/repos/profmcdan/graphql-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/profmcdan/graphql-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/profmcdan/graphql-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/profmcdan/graphql-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/profmcdan/graphql-learn/contents/{+path}","compare_url":"https://api.github.com/repos/profmcdan/graphql-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/profmcdan/graphql-learn/merges","archive_url":"https://api.github.com/repos/profmcdan/graphql-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/profmcdan/graphql-learn/downloads","issues_url":"https://api.github.com/repos/profmcdan/graphql-learn/issues{/number}","pulls_url":"https://api.github.com/repos/profmcdan/graphql-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/profmcdan/graphql-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/profmcdan/graphql-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/profmcdan/graphql-learn/labels{/name}","releases_url":"https://api.github.com/repos/profmcdan/graphql-learn/releases{/id}","deployments_url":"https://api.github.com/repos/profmcdan/graphql-learn/deployments","created_at":"2018-11-29T10:41:49Z","updated_at":"2018-11-29T13:10:45Z","pushed_at":"2018-11-29T14:39:33Z","git_url":"git://github.com/profmcdan/graphql-learn.git","ssh_url":"git@github.com:profmcdan/graphql-learn.git","clone_url":"https://github.com/profmcdan/graphql-learn.git","svn_url":"https://github.com/profmcdan/graphql-learn","homepage":"","size":264,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"profmcdan:master","ref":"master","sha":"5ccc26de218c69fb40da4ca016e754bfa38f73b6","user":{"login":"profmcdan","id":22466440,"node_id":"MDQ6VXNlcjIyNDY2NDQw","avatar_url":"https://avatars0.githubusercontent.com/u/22466440?v=4","gravatar_id":"","url":"https://api.github.com/users/profmcdan","html_url":"https://github.com/profmcdan","followers_url":"https://api.github.com/users/profmcdan/followers","following_url":"https://api.github.com/users/profmcdan/following{/other_user}","gists_url":"https://api.github.com/users/profmcdan/gists{/gist_id}","starred_url":"https://api.github.com/users/profmcdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/profmcdan/subscriptions","organizations_url":"https://api.github.com/users/profmcdan/orgs","repos_url":"https://api.github.com/users/profmcdan/repos","events_url":"https://api.github.com/users/profmcdan/events{/privacy}","received_events_url":"https://api.github.com/users/profmcdan/received_events","type":"User","site_admin":false},"repo":{"id":159650140,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk2NTAxNDA=","name":"graphql-learn","full_name":"profmcdan/graphql-learn","private":false,"owner":{"login":"profmcdan","id":22466440,"node_id":"MDQ6VXNlcjIyNDY2NDQw","avatar_url":"https://avatars0.githubusercontent.com/u/22466440?v=4","gravatar_id":"","url":"https://api.github.com/users/profmcdan","html_url":"https://github.com/profmcdan","followers_url":"https://api.github.com/users/profmcdan/followers","following_url":"https://api.github.com/users/profmcdan/following{/other_user}","gists_url":"https://api.github.com/users/profmcdan/gists{/gist_id}","starred_url":"https://api.github.com/users/profmcdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/profmcdan/subscriptions","organizations_url":"https://api.github.com/users/profmcdan/orgs","repos_url":"https://api.github.com/users/profmcdan/repos","events_url":"https://api.github.com/users/profmcdan/events{/privacy}","received_events_url":"https://api.github.com/users/profmcdan/received_events","type":"User","site_admin":false},"html_url":"https://github.com/profmcdan/graphql-learn","description":"GraphQL, Prisma, Apollo and React","fork":false,"url":"https://api.github.com/repos/profmcdan/graphql-learn","forks_url":"https://api.github.com/repos/profmcdan/graphql-learn/forks","keys_url":"https://api.github.com/repos/profmcdan/graphql-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/profmcdan/graphql-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/profmcdan/graphql-learn/teams","hooks_url":"https://api.github.com/repos/profmcdan/graphql-learn/hooks","issue_events_url":"https://api.github.com/repos/profmcdan/graphql-learn/issues/events{/number}","events_url":"https://api.github.com/repos/profmcdan/graphql-learn/events","assignees_url":"https://api.github.com/repos/profmcdan/graphql-learn/assignees{/user}","branches_url":"https://api.github.com/repos/profmcdan/graphql-learn/branches{/branch}","tags_url":"https://api.github.com/repos/profmcdan/graphql-learn/tags","blobs_url":"https://api.github.com/repos/profmcdan/graphql-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/profmcdan/graphql-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/profmcdan/graphql-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/profmcdan/graphql-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/profmcdan/graphql-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/profmcdan/graphql-learn/languages","stargazers_url":"https://api.github.com/repos/profmcdan/graphql-learn/stargazers","contributors_url":"https://api.github.com/repos/profmcdan/graphql-learn/contributors","subscribers_url":"https://api.github.com/repos/profmcdan/graphql-learn/subscribers","subscription_url":"https://api.github.com/repos/profmcdan/graphql-learn/subscription","commits_url":"https://api.github.com/repos/profmcdan/graphql-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/profmcdan/graphql-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/profmcdan/graphql-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/profmcdan/graphql-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/profmcdan/graphql-learn/contents/{+path}","compare_url":"https://api.github.com/repos/profmcdan/graphql-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/profmcdan/graphql-learn/merges","archive_url":"https://api.github.com/repos/profmcdan/graphql-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/profmcdan/graphql-learn/downloads","issues_url":"https://api.github.com/repos/profmcdan/graphql-learn/issues{/number}","pulls_url":"https://api.github.com/repos/profmcdan/graphql-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/profmcdan/graphql-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/profmcdan/graphql-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/profmcdan/graphql-learn/labels{/name}","releases_url":"https://api.github.com/repos/profmcdan/graphql-learn/releases{/id}","deployments_url":"https://api.github.com/repos/profmcdan/graphql-learn/deployments","created_at":"2018-11-29T10:41:49Z","updated_at":"2018-11-29T13:10:45Z","pushed_at":"2018-11-29T14:39:33Z","git_url":"git://github.com/profmcdan/graphql-learn.git","ssh_url":"git@github.com:profmcdan/graphql-learn.git","clone_url":"https://github.com/profmcdan/graphql-learn.git","svn_url":"https://github.com/profmcdan/graphql-learn","homepage":"","size":264,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/profmcdan/graphql-learn/pulls/4"},"html":{"href":"https://github.com/profmcdan/graphql-learn/pull/4"},"issue":{"href":"https://api.github.com/repos/profmcdan/graphql-learn/issues/4"},"comments":{"href":"https://api.github.com/repos/profmcdan/graphql-learn/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/profmcdan/graphql-learn/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/profmcdan/graphql-learn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/profmcdan/graphql-learn/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/profmcdan/graphql-learn/statuses/d525b465089658206f2e9365810a964cc81fe028"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":117,"deletions":5,"changed_files":4}}
{"actor":{"display_login":"profmcdan"}}