From 8005cf897ea693fec14752089bb343a0f3ebd9be Mon Sep 17 00:00:00 2001 From: Anton Shutik Date: Wed, 30 Oct 2024 19:57:49 +0100 Subject: [PATCH] Added page_size, query private --- shopify_client/graphql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shopify_client/graphql.py b/shopify_client/graphql.py index 28e6156..cb8482e 100644 --- a/shopify_client/graphql.py +++ b/shopify_client/graphql.py @@ -18,9 +18,9 @@ def __build_url(self, **params): def __call__(self, *args, **kwargs): return self.__query(*args, **kwargs) - def __query(self, query, variables=None, operation_name=None, paginate=False): + def __query(self, query, variables=None, operation_name=None, paginate=False, page_size=100): if paginate: - return self.__paginate(query, variables, operation_name) + return self.__paginate(query, variables, operation_name, page_size) try: response = self.client.post( self.__build_url(),