menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

WPGraphQL

Free Open Source WordPress plugin that adds an extendable GraphQL Schema and API to your WordPress site

Channels
Team

WP Graphql Posts Limit

June 18, 2020 at 9:11am

WP Graphql Posts Limit

June 18, 2020 at 9:11am
Hi I already removed Query limits with functions.php It works in WPGraphiql. But whenever i tried fetching outside wordpress. It always returns 100 post. I'm using { request } from graphql-request (Prisma) to fetch data. Any idea?

December 12, 2020 at 2:54am
300 is the plugins default limit which you can change if desired.
add_filter('graphql_connection_max_query_amount', function($amount, $source, $args, $context, $info) {
$amount = 1000; // whatever you want the limit to be, in this case 1000.
return $amount;
}, 10, 5 );
Edited