In Shopify’s GraphQL API, the orders query does not directly accept a createdAt argument. Instead, you should be filtering orders using the query argument with the appropriate search terms. Here’s how you can modify your query to retrieve orders that have been paid within a specific date and time range:
{
orders(first:100, query: "financial_status:paid AND created_at:>='2023-11-06T10:00:00Z' AND created_at:<='2023-11-06T10:30:00Z'") {
edges {
node {
id
createdAt
fullyPaid
}
}
}
}
Can you please say, is there any way to query the Orders by updated date only? I mean, to fill the date and get all of the orders from a specified date by one request? How can I avoid the cursor and first/last values? I have some solution when the cursor’s value is passed to the query via loop, by using the cursor value from a previous query.