Can not filter orders by `update_at` in bulkOperation

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.

See: orders - GraphQL Admin

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
            }
        }
    }
}

I think you may need to use >= instead of > can you try this:

mutation {
  bulkOperationRunQuery(
    query: """
    {
      orders(query: "updated_at:>=2025-02-10") {
        edges {
          node {
            id
            name
          }
        }
      }
    }
    """
  ) {
    bulkOperation {
      id
      status
    }
    userErrors {
      field
      message
    }
  }
}

I still get the same error when i use >=

Error:

{'errors': [{'message': 'syntax error, unexpected invalid token (">") at [3, 113]', 'locations': [{'line': 3, 'column': 113}]}]}

Sorry, my bad.

Both > and >= works for filtering. Looks like my client side code was messing with double quotes " " and triple quotes """ """