Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hello,
I need to change all customer locale from standard 'DE' to 'EN'.
How can I do this in batch with GraphQL?
https://shopify.dev/api/admin-graphql/2023-01/mutations/customerupdate
Thanks for your help!
Regards
Cem
Hi @bordbar 👋
The `customerUpdate` mutation can be used with `bulkOperationRunMutation` to update multiple customer locals at a time. Bulk mutations are designed to import large volumes of data asychronously, and we have an great guide here on how to use it to bulk import data into Shopify.
Hope that helps!
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
thanks for your feedback.
Can this be done in Shopify GraphiQL App ?
Ciao
Cem
As highlighted in this process diagram from the docs, there are steps in the bulk operation process that are outside of GraphQL. The GraphQL mutations can be run on the GraphiQL app, where as preparing and uploading the JSONL file will need to executed outside of GraphiQL app.
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog