With the direct EMail access from a customer graphql query being deprecated, is there a method for obtaining the email and the customer information in a single query. It seems email and the customer contact information usually go hand in hand, but the defaultemailaddresses does not seem linked to customer.
Topic summary
Shopify is deprecating direct email access from the customer GraphQL query, creating challenges for developers who need to retrieve email and customer information together.
Current Issue:
- The traditional email field is being phased out
- The replacement field
defaultEmailAddressexists but isn’t yet functional - This creates a gap for developers needing email data alongside customer details
Resolution:
- The
defaultEmailAddressfield will only become available starting with API version 2025-04 - Developers must update to version 2025-04 to access this new field
- The deprecation notice appears premature since the replacement isn’t yet available in current API versions
Status: Issue identified and resolved through community discussion. Developers should plan to migrate to API version 2025-04 when it becomes available.
I stumbled upon the same problem and found out that the defaultEmailAddress field will only be introduced with API version 2025-04. So the field can only be used after an update to 2025-04
Thanks. So showing email as deprecated was a bit premature.