ch264 / json-gatsby-wordpress-graphql

POC for headless blog and Gatsby
MIT License
0 stars 0 forks source link

Made function to fetch all tags (or any other items), not just 100 limit cap. #36

Closed mclausaudio closed 4 years ago

mclausaudio commented 4 years ago

qpgraphql plugin has a 100 item limit for API calls, so I was only getting the first 100 tags, even though we really have 139 different tags. As a result, there were 39 tags that would result in a 404 when clicked because those pages never get created.

Made function to fetch all tags (or any other items), not just 100 limit cap. It's DRY enough to use for different item types (blog posts, categories etc.)