diff --git a/src/Loader.php b/src/Loader.php index 3d5ad3c..073a4e6 100644 --- a/src/Loader.php +++ b/src/Loader.php @@ -72,13 +72,13 @@ function op_filter_graphql_connection_amount_requested($amount, $resolver) */ static function get_page_size(AbstractConnectionResolver $resolver) { - $args = $resolver->getArgs(); + $args = $resolver->get_args(); return intval($args['where']['offsetPagination']['size'] ?? 0); } static function is_offset_resolver(AbstractConnectionResolver $resolver) { - $args = $resolver->getArgs(); + $args = $resolver->get_args(); return isset($args['where']['offsetPagination']); } @@ -126,7 +126,7 @@ function op_filter_graphql_connection_page_info( ) { $size = self::get_page_size($resolver); $query = $resolver->get_query(); - $args = $resolver->getArgs(); + $args = $resolver->get_args(); $offset = $args['where']['offsetPagination']['offset'] ?? 0; $total = null;