Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Shutik committed Oct 30, 2024
1 parent 28455c9 commit b4486cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ query products($page_size: Int = 100) {
}
}
'''
response = client.graphql.query(query)
response = client.query(query)

# Limit page size
response = client.graphql.query(query, variables={"page_size": 20})
response = client.query(query, variables={"page_size": 20})

# Use pagination.
# Note that "pageIngo" block with at least "hasNextPage" & "startCursor" is required
Expand All @@ -95,7 +95,7 @@ query products($page_size: Int = 100, $cursor: String) {
}
}
'''
for page in client.graphql.query_paginated(query)
for page in client.query(query, paginate=True)
print(page)
```

0 comments on commit b4486cd

Please sign in to comment.