diff --git a/shopify_client/graphql.py b/shopify_client/graphql.py index 07b79fa..3815f41 100644 --- a/shopify_client/graphql.py +++ b/shopify_client/graphql.py @@ -20,7 +20,7 @@ def __build_url(self, **params): def __call__(self, *args, **kwargs): return self.__query(*args, **kwargs) - def __query_from_name(self, name): + def query_from_name(self, name): assert self.grapgql_queries_dir, "GraphQL queries directory is not set" query_path = os.path.join(self.grapgql_queries_dir, f"{name}.graphql") @@ -31,7 +31,7 @@ def __query(self, query=None, query_name=None, variables=None, operation_name=No assert query or query_name, "Either 'query' or 'query_name' must be provided" if query is None and query_name: - query = self.__query_from_name(query_name) + query = self.query_from_name(query_name) if paginate: return self.__paginate(query=query, variables=variables, operation_name=operation_name, page_size=page_size)