payload: {"action":"created","issue":{"url":"https://api.github.com/repos/GatsbyCentral/gatsby-awesome-pagination/issues/18","repository_url":"https://api.github.com/repos/GatsbyCentral/gatsby-awesome-pagination","labels_url":"https://api.github.com/repos/GatsbyCentral/gatsby-awesome-pagination/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/GatsbyCentral/gatsby-awesome-pagination/issues/18/comments","events_url":"https://api.github.com/repos/GatsbyCentral/gatsby-awesome-pagination/issues/18/events","html_url":"https://github.com/GatsbyCentral/gatsby-awesome-pagination/issues/18","id":478002281,"node_id":"MDU6SXNzdWU0NzgwMDIyODE=","number":18,"title":"Confusion around using index.js","user":{"login":"kpennell","id":1060385,"node_id":"MDQ6VXNlcjEwNjAzODU=","avatar_url":"https://avatars1.githubusercontent.com/u/1060385?v=4","gravatar_id":"","url":"https://api.github.com/users/kpennell","html_url":"https://github.com/kpennell","followers_url":"https://api.github.com/users/kpennell/followers","following_url":"https://api.github.com/users/kpennell/following{/other_user}","gists_url":"https://api.github.com/users/kpennell/gists{/gist_id}","starred_url":"https://api.github.com/users/kpennell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpennell/subscriptions","organizations_url":"https://api.github.com/users/kpennell/orgs","repos_url":"https://api.github.com/users/kpennell/repos","events_url":"https://api.github.com/users/kpennell/events{/privacy}","received_events_url":"https://api.github.com/users/kpennell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-08-07T15:36:22Z","updated_at":"2019-08-07T15:48:35Z","closed_at":null,"author_association":"NONE","body":"Hey there - Nice plugin it seems. I'm just struggling to figure it out a bit.\r\n\r\nI have a big list of videos on my index.js page currently. Way too many in fact, hence the need for pagination. But I'm struggling a bit to use my index.js as a main page. Perhaps I can't or am just not using this plugin correctly yet.\r\n\r\nSo within my gatsby-node.js, I do this\r\n\r\n   ```\r\n const items = result.data.allItem.edges\r\n\r\n    paginate({\r\n      createPage, // The Gatsby `createPage` function\r\n      items: items, // An array of objects\r\n      itemsPerPage: 10, // How many items you want per page\r\n      pathPrefix: '/', // Creates pages like `/blog`, `/blog/2`, etc\r\n      component: path.resolve(`src/pages/index.js`), // Just like `createPage()`\r\n    })\r\n\r\n```\r\nnow within index.js, I do this within the query:\r\n```\r\n  query IndexQuery($skip: Int, $limit: Int) {\r\n    allItem (\r\n      sort: {\r\n        fields: commenttoviewratio,\r\n        order: DESC\r\n      }\r\n      skip: $skip\r\n      limit: $limit\r\n    ) {\r\n```\r\nNow the main index.js (home page) still has the massive list of videos. \r\n\r\nBut now /2 /3 etc. work like a charm. They each have 10 items on them. I'm missing something basic right?\r\n\r\nHow do I make the main index.js first page have only 10 videos? Or should I just create a /videos page and then do videos/1 videos/2 etc... and have index.js link to said videos page?\r\n\r\nSomehow I feel I'd run into the same problem...so just a bit stuck.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/GatsbyCentral/gatsby-awesome-pagination/issues/comments/519156450","html_url":"https://github.com/GatsbyCentral/gatsby-awesome-pagination/issues/18#issuecomment-519156450","issue_url":"https://api.github.com/repos/GatsbyCentral/gatsby-awesome-pagination/issues/18","id":519156450,"node_id":"MDEyOklzc3VlQ29tbWVudDUxOTE1NjQ1MA==","user":{"login":"kpennell","id":1060385,"node_id":"MDQ6VXNlcjEwNjAzODU=","avatar_url":"https://avatars1.githubusercontent.com/u/1060385?v=4","gravatar_id":"","url":"https://api.github.com/users/kpennell","html_url":"https://github.com/kpennell","followers_url":"https://api.github.com/users/kpennell/followers","following_url":"https://api.github.com/users/kpennell/following{/other_user}","gists_url":"https://api.github.com/users/kpennell/gists{/gist_id}","starred_url":"https://api.github.com/users/kpennell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpennell/subscriptions","organizations_url":"https://api.github.com/users/kpennell/orgs","repos_url":"https://api.github.com/users/kpennell/repos","events_url":"https://api.github.com/users/kpennell/events{/privacy}","received_events_url":"https://api.github.com/users/kpennell/received_events","type":"User","site_admin":false},"created_at":"2019-08-07T15:48:35Z","updated_at":"2019-08-07T15:48:35Z","author_association":"NONE","body":"itemsPerFirstPage didn't seem to solve it so I must just be using this wrong"}}
other: {"actor":{"display_login":"kpennell"}}