A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
query (
$results: Int!,
$cursor: String,
$order_window: String
) {
orders(
first: $results,
after: $cursor,
query: $order_window,
reverse: true
) {
pageInfo {
hasNextPage
hasPreviousPage
}
edges {
cursor
node {
name
id
test
cancelledAt
shippingAddress {
lastName
firstName
address1
address2
city
province
country
zip
phone
}
displayFinancialStatus
fullyPaid
createdAt
app {
name
}
nonFulfillableLineItems (first: 25 ) {
edges {
node {
id
title
}
}
}
customer {
id
firstName
lastName
email
tags
ordersCount
deliveryComment: metafield(
namespace: "global"
key: "order_note"
) {
value
}
}
lineItems (
first: 25
) {
edges {
node {
id
title
variantTitle
}
}
}
}
}
}
}
Variables:
{
"results": 10,
"cursor": cursor,
"order_window": "created_at:>#{start_date} AND created_at:<#{end_date}"
}
Thank you