Storefront Customer Order history only this calendar year?

Strange, just tested mine and it’s giving me the expected result (orders from 2021 and 2020), test query below:

customer(customerAccessToken: $customerAccessToken) {
  orders(first: 100, reverse: true) {
    edges {
      node {
        id
        orderNumber
        processedAt
      }
    }
  }
}

Using the xx.myshopify.com/api/2021-01/graphql.json endpoint.

1 Like