Unable to filter orders by the date and time when the order was last updated in Shopify’s system using bulkOperation.
I’m using this query to fetch all orders which were updated after a specific date, but i’m getting an error.
Query:
query {
orders (query: "updated_at:>2025-02-10") {
edges {
node {
name
id
}
}
}
}
Error:
{'errors': [{'message': 'syntax error, unexpected invalid token (">") at [3, 113]', 'locations': [{'line': 3, 'column': 113}]}]}
Was able to fetch all the orders in the system with out filter being applied, had to filter out old orders in the client side.
Query without filtering:
query {
orders {
edges {
node {
name
id
}
}
}
}