Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

hasNextPage is false, but I can get the next page by passing the cursor

hasNextPage is false, but I can get the next page by passing the cursor

8ssNbSkkkZ6u
Shopify Partner
2 0 0

 

          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}


スクリーンショット 2022-12-16 15.42.37.png

 hasNextPage is false, but I can get the next page by passing the cursor
Is there something wrong with this code?

Replies 0 (0)