In the Shopify 2024-07 API release, the customer_date filter was deprecated in the customers query. I’ve been using the following GraphQL query to filter and split customers by a specific date range using customer_date:
mutation {
bulkOperationRunQuery(
query: """
{
customers(query: "customer_date:>=2021-01-01T00:00:00Z AND customer_date:<=2021-12-31T23:59:59Z") {
edges {
node {
id
firstName
lastName
email
phone
createdAt
updatedAt
}
}
}
}
"""
) {
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}
Given the 2024-10 API update, what’s the recommended approach to retrieve the same data filtered by customer creation date?
Is there a direct alternative to customer_date for filtering customers without creating a segment, or do we need to entirely switch to segments with ShopifyQL for this use case?
Looking for the most efficient way to replicate this functionality. Any insights or examples would be highly appreciated!