All things Shopify and commerce
I am trying to use last: 10 to get the last 10 orders.
customer(customerAccessToken: "${customerAccessToken}") { orders(last: 10) {...} }
{ orders(first: 10, reverse:true, sortKey:CREATED_AT) { edges { node { id createdAt } } } }
Also experiencing the same bug with the below query:
{
orders(last: 10) {
edges {
node {
id
email
name
phone
}
}
}
}
But, the same query works in the GraphQL explorer Shopify app.
Want to see it in action? Check out our demo store.
I'm getting the same issue for the following query which according to the documentation I can use:
query {
currentAppInstallation {
allSubscriptions(last: 2) {
edges {
node {
lineItems {
plan {
pricingDetails {
__typename
... on AppRecurringPricing {
price {
amount
currencyCode
}
}
... on AppUsagePricing {
balanceUsed {
amount
currencyCode
}
cappedAmount {
amount
currencyCode
}
}
}
}
}
createdAt
id
name
status
test
}
}
}
}
}
Frustrating to hear no comment or solution on this problem. Im starting to have doubts on the seriousness of the shopify team and the truthfulness of their obfuscated documentation
I get the same issue.
Actually, if you do
orders(first:10, reverse: true, sortKey: Storefront.OrderSortKeys.processedAt) { ...
then it's equal to last: 10
Strangely the reverse is doing the opposite sorting. You can check if by last: 1, and see which order returns...
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025