Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
query($query: String, $first: Int, $sortKey: ProductSortKeys, $reverse: Boolean, $after: String) {
products(query: $query, first: $first, sortKey: $sortKey, reverse: $reverse, after: $after) {
edges {
cursor
node {
id
title
~~~~~~~~~~~~
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
}
variables: {:query=>"(tag:something_tag) OR (tag:something_tag)", :first=>30, :after=>"eyJsYXN0X2lxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==", :sortKey=>"CREATED_AT", :reverse=>true}
hasNextPage is false, but I can get the next page by passing the cursor
Is there something wrong with this code?