Skip to content

Commit e2a060f

Browse files
committed
Tiny improvement to paginate documentation [ci skip]
1 parent b359f80 commit e2a060f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ in your queries and wrap them in a function that accepts a page/cursor argument.
8484
The pager's `#execute` is like the non-paginated `#execute` method and accepts additional, non-pagination query arguments:
8585

8686
```rb
87+
gql = ShopifyAPI::GraphQL::Tiny.new("my-shop", token)
88+
pager = gql.paginate
8789
pager.execute(query, :foo => 123)
8890
```
8991

0 commit comments

Comments
 (0)