GatsbyCentral / gatsby-awesome-pagination

An opinionated, more awesome approach to pagination in Gatsby
MIT License
110 stars 27 forks source link

Int! vs Int in demo docs #17

Closed kpennell closed 4 years ago

kpennell commented 5 years ago

image

Hey there, in the gatsby plugins, it says query ($skip: Int!, $limit: Int!) { but I noticed several people had no exclamation points. e.g. https://github.com/cpg7023/deploy-web/blob/9e0d64b1c142b3cb7e89bd77f686df3d17255ecc/src/pages/blog.js#L43

Removing ! fixed it for me. What's the difference?

chmac commented 5 years ago

Removing the ! means that the $skip and $limit field are optional. It’s been a while since we worked on this project, but my memory is that these fields should be required, otherwise there’s probably something not working...