{"action":"created","comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/comments/306248960","pull_request_review_id":265320041,"id":306248960,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwNjI0ODk2MA==","diff_hunk":"@@ -53,7 +53,9 @@ For each page we want to create we must specify the `path` for visiting that\n page, the `component` template used to render that page, and any `context`","path":"docs/docs/programmatically-create-pages-from-data.md","position":1,"original_position":1,"commit_id":"5fc6b0b5c2db227bb653d8f9b5b363a1db190e49","original_commit_id":"5fc6b0b5c2db227bb653d8f9b5b363a1db190e49","user":{"login":"wardpeet","id":1120926,"node_id":"MDQ6VXNlcjExMjA5MjY=","avatar_url":"https://avatars3.githubusercontent.com/u/1120926?v=4","gravatar_id":"","url":"https://api.github.com/users/wardpeet","html_url":"https://github.com/wardpeet","followers_url":"https://api.github.com/users/wardpeet/followers","following_url":"https://api.github.com/users/wardpeet/following{/other_user}","gists_url":"https://api.github.com/users/wardpeet/gists{/gist_id}","starred_url":"https://api.github.com/users/wardpeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wardpeet/subscriptions","organizations_url":"https://api.github.com/users/wardpeet/orgs","repos_url":"https://api.github.com/users/wardpeet/repos","events_url":"https://api.github.com/users/wardpeet/events{/privacy}","received_events_url":"https://api.github.com/users/wardpeet/received_events","type":"User","site_admin":false},"body":"What do you think of the following sentence?\r\n\r\nFor each page we want to create, we must specify the path for visiting that page, the component template used to render that page, and any context we need to render the component. The context parameter is optional though often times it will include a unique identifier that can be used to query for associated data that will be used inside your page. All context values are made available in the page query as arguments prefaced with $ (ex. slug -> $slug).\r\n```js\r\nexport const query = graphql`\r\n  query($slug: String!) {\t  query($slug: String!) {\r\n  }\r\n`\r\n```\r\n\r\nI'm not sure if we need to show an example as it's a few lines below anyway.\r\n\r\ncc @gillkyle ","created_at":"2019-07-23T10:39:54Z","updated_at":"2019-07-23T10:40:24Z","html_url":"https://github.com/gatsbyjs/gatsby/pull/15984#discussion_r306248960","pull_request_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/15984","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/comments/306248960"},"html":{"href":"https://github.com/gatsbyjs/gatsby/pull/15984#discussion_r306248960"},"pull_request":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/15984"}}},"pull_request":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/15984","id":300011818,"node_id":"MDExOlB1bGxSZXF1ZXN0MzAwMDExODE4","html_url":"https://github.com/gatsbyjs/gatsby/pull/15984","diff_url":"https://github.com/gatsbyjs/gatsby/pull/15984.diff","patch_url":"https://github.com/gatsbyjs/gatsby/pull/15984.patch","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/15984","number":15984,"state":"open","locked":false,"title":"feat(docs): Include explicit mention of GraphQL arguments coming from context","user":{"login":"taylorham","id":7042219,"node_id":"MDQ6VXNlcjcwNDIyMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/7042219?v=4","gravatar_id":"","url":"https://api.github.com/users/taylorham","html_url":"https://github.com/taylorham","followers_url":"https://api.github.com/users/taylorham/followers","following_url":"https://api.github.com/users/taylorham/following{/other_user}","gists_url":"https://api.github.com/users/taylorham/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorham/subscriptions","organizations_url":"https://api.github.com/users/taylorham/orgs","repos_url":"https://api.github.com/users/taylorham/repos","events_url":"https://api.github.com/users/taylorham/events{/privacy}","received_events_url":"https://api.github.com/users/taylorham/received_events","type":"User","site_admin":false},"body":"## Description\r\n\r\nI got confused as to why certain fields weren't being sent into my GraphQL queries and spent an embarrassing amount of time trying to debug it in all the wrong ways.\r\n\r\nThis PR adds a sentence the \"Programmatically Create Pages From Data\" section of the docs explicitly clarifying that all values passed to `context` are made available to GraphQL queries as arguments.\r\n\r\n:bulb: It might be worth also explaining the related inverse, where any argument you expect to use in GraphQL queries must be specified on the `context`. **Opinions appreciated!**\r\n\r\n## Related Issues\r\n\r\nMy own lack of understanding 😁\r\n\r\nI also want to thank whoever sees this for doing incredibly impressive work on Gatsby thus far. I've had a blast working on a few `theme` projects for my company and I hope I can contribute more in the coming weeks!\r\n\r\nAlso big thanks to @lannonbr for pointing out the fix in the [`#need-help` Discord channel](https://discordapp.com/channels/484383807575687178/537691356487876624)!","created_at":"2019-07-22T19:44:21Z","updated_at":"2019-07-23T10:40:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6648fbbe893ee7985c3f6a296b642ce897f4eb10","assignee":{"login":"gillkyle","id":21114044,"node_id":"MDQ6VXNlcjIxMTE0MDQ0","avatar_url":"https://avatars2.githubusercontent.com/u/21114044?v=4","gravatar_id":"","url":"https://api.github.com/users/gillkyle","html_url":"https://github.com/gillkyle","followers_url":"https://api.github.com/users/gillkyle/followers","following_url":"https://api.github.com/users/gillkyle/following{/other_user}","gists_url":"https://api.github.com/users/gillkyle/gists{/gist_id}","starred_url":"https://api.github.com/users/gillkyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gillkyle/subscriptions","organizations_url":"https://api.github.com/users/gillkyle/orgs","repos_url":"https://api.github.com/users/gillkyle/repos","events_url":"https://api.github.com/users/gillkyle/events{/privacy}","received_events_url":"https://api.github.com/users/gillkyle/received_events","type":"User","site_admin":false},"assignees":[{"login":"gillkyle","id":21114044,"node_id":"MDQ6VXNlcjIxMTE0MDQ0","avatar_url":"https://avatars2.githubusercontent.com/u/21114044?v=4","gravatar_id":"","url":"https://api.github.com/users/gillkyle","html_url":"https://github.com/gillkyle","followers_url":"https://api.github.com/users/gillkyle/followers","following_url":"https://api.github.com/users/gillkyle/following{/other_user}","gists_url":"https://api.github.com/users/gillkyle/gists{/gist_id}","starred_url":"https://api.github.com/users/gillkyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gillkyle/subscriptions","organizations_url":"https://api.github.com/users/gillkyle/orgs","repos_url":"https://api.github.com/users/gillkyle/repos","events_url":"https://api.github.com/users/gillkyle/events{/privacy}","received_events_url":"https://api.github.com/users/gillkyle/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/15984/commits","review_comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/15984/comments","review_comment_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/15984/comments","statuses_url":"https://api.github.com/repos/gatsbyjs/gatsby/statuses/5fc6b0b5c2db227bb653d8f9b5b363a1db190e49","head":{"label":"taylorham:patch-1","ref":"patch-1","sha":"5fc6b0b5c2db227bb653d8f9b5b363a1db190e49","user":{"login":"taylorham","id":7042219,"node_id":"MDQ6VXNlcjcwNDIyMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/7042219?v=4","gravatar_id":"","url":"https://api.github.com/users/taylorham","html_url":"https://github.com/taylorham","followers_url":"https://api.github.com/users/taylorham/followers","following_url":"https://api.github.com/users/taylorham/following{/other_user}","gists_url":"https://api.github.com/users/taylorham/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorham/subscriptions","organizations_url":"https://api.github.com/users/taylorham/orgs","repos_url":"https://api.github.com/users/taylorham/repos","events_url":"https://api.github.com/users/taylorham/events{/privacy}","received_events_url":"https://api.github.com/users/taylorham/received_events","type":"User","site_admin":false},"repo":{"id":196478218,"node_id":"MDEwOlJlcG9zaXRvcnkxOTY0NzgyMTg=","name":"gatsby","full_name":"taylorham/gatsby","private":false,"owner":{"login":"taylorham","id":7042219,"node_id":"MDQ6VXNlcjcwNDIyMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/7042219?v=4","gravatar_id":"","url":"https://api.github.com/users/taylorham","html_url":"https://github.com/taylorham","followers_url":"https://api.github.com/users/taylorham/followers","following_url":"https://api.github.com/users/taylorham/following{/other_user}","gists_url":"https://api.github.com/users/taylorham/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorham/subscriptions","organizations_url":"https://api.github.com/users/taylorham/orgs","repos_url":"https://api.github.com/users/taylorham/repos","events_url":"https://api.github.com/users/taylorham/events{/privacy}","received_events_url":"https://api.github.com/users/taylorham/received_events","type":"User","site_admin":false},"html_url":"https://github.com/taylorham/gatsby","description":"Build blazing fast, modern apps and websites with React","fork":true,"url":"https://api.github.com/repos/taylorham/gatsby","forks_url":"https://api.github.com/repos/taylorham/gatsby/forks","keys_url":"https://api.github.com/repos/taylorham/gatsby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/taylorham/gatsby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/taylorham/gatsby/teams","hooks_url":"https://api.github.com/repos/taylorham/gatsby/hooks","issue_events_url":"https://api.github.com/repos/taylorham/gatsby/issues/events{/number}","events_url":"https://api.github.com/repos/taylorham/gatsby/events","assignees_url":"https://api.github.com/repos/taylorham/gatsby/assignees{/user}","branches_url":"https://api.github.com/repos/taylorham/gatsby/branches{/branch}","tags_url":"https://api.github.com/repos/taylorham/gatsby/tags","blobs_url":"https://api.github.com/repos/taylorham/gatsby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/taylorham/gatsby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/taylorham/gatsby/git/refs{/sha}","trees_url":"https://api.github.com/repos/taylorham/gatsby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/taylorham/gatsby/statuses/{sha}","languages_url":"https://api.github.com/repos/taylorham/gatsby/languages","stargazers_url":"https://api.github.com/repos/taylorham/gatsby/stargazers","contributors_url":"https://api.github.com/repos/taylorham/gatsby/contributors","subscribers_url":"https://api.github.com/repos/taylorham/gatsby/subscribers","subscription_url":"https://api.github.com/repos/taylorham/gatsby/subscription","commits_url":"https://api.github.com/repos/taylorham/gatsby/commits{/sha}","git_commits_url":"https://api.github.com/repos/taylorham/gatsby/git/commits{/sha}","comments_url":"https://api.github.com/repos/taylorham/gatsby/comments{/number}","issue_comment_url":"https://api.github.com/repos/taylorham/gatsby/issues/comments{/number}","contents_url":"https://api.github.com/repos/taylorham/gatsby/contents/{+path}","compare_url":"https://api.github.com/repos/taylorham/gatsby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/taylorham/gatsby/merges","archive_url":"https://api.github.com/repos/taylorham/gatsby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/taylorham/gatsby/downloads","issues_url":"https://api.github.com/repos/taylorham/gatsby/issues{/number}","pulls_url":"https://api.github.com/repos/taylorham/gatsby/pulls{/number}","milestones_url":"https://api.github.com/repos/taylorham/gatsby/milestones{/number}","notifications_url":"https://api.github.com/repos/taylorham/gatsby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/taylorham/gatsby/labels{/name}","releases_url":"https://api.github.com/repos/taylorham/gatsby/releases{/id}","deployments_url":"https://api.github.com/repos/taylorham/gatsby/deployments","created_at":"2019-07-11T23:43:04Z","updated_at":"2019-07-11T23:43:13Z","pushed_at":"2019-07-22T19:56:28Z","git_url":"git://github.com/taylorham/gatsby.git","ssh_url":"git@github.com:taylorham/gatsby.git","clone_url":"https://github.com/taylorham/gatsby.git","svn_url":"https://github.com/taylorham/gatsby","homepage":"https://www.gatsbyjs.org","size":604009,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gatsbyjs:master","ref":"master","sha":"2616e379b157a0693ed8b34afc177027a58ad413","user":{"login":"gatsbyjs","id":12551863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNTUxODYz","avatar_url":"https://avatars1.githubusercontent.com/u/12551863?v=4","gravatar_id":"","url":"https://api.github.com/users/gatsbyjs","html_url":"https://github.com/gatsbyjs","followers_url":"https://api.github.com/users/gatsbyjs/followers","following_url":"https://api.github.com/users/gatsbyjs/following{/other_user}","gists_url":"https://api.github.com/users/gatsbyjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gatsbyjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatsbyjs/subscriptions","organizations_url":"https://api.github.com/users/gatsbyjs/orgs","repos_url":"https://api.github.com/users/gatsbyjs/repos","events_url":"https://api.github.com/users/gatsbyjs/events{/privacy}","received_events_url":"https://api.github.com/users/gatsbyjs/received_events","type":"Organization","site_admin":false},"repo":{"id":36040894,"node_id":"MDEwOlJlcG9zaXRvcnkzNjA0MDg5NA==","name":"gatsby","full_name":"gatsbyjs/gatsby","private":false,"owner":{"login":"gatsbyjs","id":12551863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNTUxODYz","avatar_url":"https://avatars1.githubusercontent.com/u/12551863?v=4","gravatar_id":"","url":"https://api.github.com/users/gatsbyjs","html_url":"https://github.com/gatsbyjs","followers_url":"https://api.github.com/users/gatsbyjs/followers","following_url":"https://api.github.com/users/gatsbyjs/following{/other_user}","gists_url":"https://api.github.com/users/gatsbyjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gatsbyjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatsbyjs/subscriptions","organizations_url":"https://api.github.com/users/gatsbyjs/orgs","repos_url":"https://api.github.com/users/gatsbyjs/repos","events_url":"https://api.github.com/users/gatsbyjs/events{/privacy}","received_events_url":"https://api.github.com/users/gatsbyjs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/gatsbyjs/gatsby","description":"Build blazing fast, modern apps and websites with React","fork":false,"url":"https://api.github.com/repos/gatsbyjs/gatsby","forks_url":"https://api.github.com/repos/gatsbyjs/gatsby/forks","keys_url":"https://api.github.com/repos/gatsbyjs/gatsby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gatsbyjs/gatsby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gatsbyjs/gatsby/teams","hooks_url":"https://api.github.com/repos/gatsbyjs/gatsby/hooks","issue_events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/events{/number}","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/events","assignees_url":"https://api.github.com/repos/gatsbyjs/gatsby/assignees{/user}","branches_url":"https://api.github.com/repos/gatsbyjs/gatsby/branches{/branch}","tags_url":"https://api.github.com/repos/gatsbyjs/gatsby/tags","blobs_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/refs{/sha}","trees_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gatsbyjs/gatsby/statuses/{sha}","languages_url":"https://api.github.com/repos/gatsbyjs/gatsby/languages","stargazers_url":"https://api.github.com/repos/gatsbyjs/gatsby/stargazers","contributors_url":"https://api.github.com/repos/gatsbyjs/gatsby/contributors","subscribers_url":"https://api.github.com/repos/gatsbyjs/gatsby/subscribers","subscription_url":"https://api.github.com/repos/gatsbyjs/gatsby/subscription","commits_url":"https://api.github.com/repos/gatsbyjs/gatsby/commits{/sha}","git_commits_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/commits{/sha}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/comments{/number}","issue_comment_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments{/number}","contents_url":"https://api.github.com/repos/gatsbyjs/gatsby/contents/{+path}","compare_url":"https://api.github.com/repos/gatsbyjs/gatsby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gatsbyjs/gatsby/merges","archive_url":"https://api.github.com/repos/gatsbyjs/gatsby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gatsbyjs/gatsby/downloads","issues_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues{/number}","pulls_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls{/number}","milestones_url":"https://api.github.com/repos/gatsbyjs/gatsby/milestones{/number}","notifications_url":"https://api.github.com/repos/gatsbyjs/gatsby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/labels{/name}","releases_url":"https://api.github.com/repos/gatsbyjs/gatsby/releases{/id}","deployments_url":"https://api.github.com/repos/gatsbyjs/gatsby/deployments","created_at":"2015-05-21T22:43:05Z","updated_at":"2019-07-23T10:28:27Z","pushed_at":"2019-07-23T10:30:50Z","git_url":"git://github.com/gatsbyjs/gatsby.git","ssh_url":"git@github.com:gatsbyjs/gatsby.git","clone_url":"https://github.com/gatsbyjs/gatsby.git","svn_url":"https://github.com/gatsbyjs/gatsby","homepage":"https://www.gatsbyjs.org","size":604268,"stargazers_count":36537,"watchers_count":36537,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5513,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":672,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5513,"open_issues":672,"watchers":36537,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/15984"},"html":{"href":"https://github.com/gatsbyjs/gatsby/pull/15984"},"issue":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/issues/15984"},"comments":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/issues/15984/comments"},"review_comments":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/15984/comments"},"review_comment":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/15984/commits"},"statuses":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/statuses/5fc6b0b5c2db227bb653d8f9b5b363a1db190e49"}},"author_association":"NONE"}}
{"actor":{"display_login":"wardpeet"}}