-
Notifications
You must be signed in to change notification settings - Fork 390
Edges is empty but pageInfo is telling hasNextPage: true #947
Comments
This issue seems to be related to some shopify internal stuff rather than this library. If we increase the number of fetched orders to a higher amount, also the raw query and the library it self does respond with proper results. But it seems that the orders list is empty cause it tries to first pick the defined number of results from all orders and than filters them by the defined query. Internally it might be something like:
which can result in an empty response. I will open a ticket at shopify directly for that.. @paulomarg could you maybe push that topic internally as it seems to be a bug at shopifys query logic... |
This issue is stale because it has been open for 90 days with no activity. It will be closed if no further action occurs in 14 days. |
Had the same issue yesterday with a GraphQL Query (see bellow). Query: {
orders(first: 25, query: "-tag:'erp.exported' AND (fulfillment_status:unshipped OR fulfillment_status:partial) AND financial_status:paid") {
edges {
cursor
node {
id
name
updatedAt
fulfillmentOrders(
first: 1
query: "assigned_location_id:XXXXXXXXXXX AND -status:closed"
) {
edges {
cursor
node {
id
status
lineItems(first: 20) {
nodes {
id
sku
totalQuantity
remainingQuantity
}
}
}
}
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
}
}
}
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
}
} |
This issue is stale because it has been open for 90 days with no activity. It will be closed if no further action occurs in 14 days. |
We are closing this issue because it has been inactive for a few months. If you still encounter this issue with the latest stable version, please reopen using the issue template. You can also contribute directly by submitting a pull request– see the CONTRIBUTING.md file for guidelines Thank you! |
Issue summary
We run a custom Shopify app that uses the graphql client from this package. When querying for orders with
"financial_status:paid AND (fulfillment_status:unfulfilled OR fulfillment_status:partially_fulfilled) AND -status:closed"
we receive an empty edges object, but pageInfo says it has a nextPage. For some reason the query response does not contain any orders. BUT if we run the query from e.g. postman (with same access token) or graphiql in the same store, we receive results. Thus we assume that it has something to do with the library and would love to get some support on it.The actual query:
Screenshot of the response logged from our application:
@shopify/shopify-api
version: 7.5.0Expected behavior
We would expect that the edges property actually contains the orders, same as the postman response does.
Actual behavior
edges is empty and hasNextPage is true.
Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: