Replies: 0
Hello,
As a user of the GraphiQL IDE I want to query all of the blog posts that have been added to my webistes WordPress CMS.
_____________________________________________________________
First solution that I tried:
When I query posts by slug I currently receive the first 10 posts.
query MyQuery {
posts {
edges {
node {
slug
}
}
}
}
____________________________________________________________
Second solution that I tried:
If I try including a depth to the results (first:1000) then I am still receiving only 20% of the posts instead of all 850 of them.
query MyQuery {
posts(first: 1000) {
edges {
node {
slug
}
}
}
}
_____________________________________________________________
Third solution that I tried:
When I go to the general settings for WPGraphQL, check “Enable Query Depth Limiting”, and then change the “Max Depth to allow for GraphQL Queries” to something closer to 1000, I am still only receiving around 20% of posts in my query results.
I have searched for information on this topic through the forums and have not found a solution.
Any advice?
Thanks,
Austin
Atlanta Creative Consulting
Atlanta, Georgia