Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
I'm working on a Gatsby/Shopify site with authentication functionality, I've used the storefront API mutations for register/login/reset_password, and also I allow customers to update their info.
The issue I'm facing is that in order to update an address you need the address's Id, and when you create a customer using customerCreate mutation the address and default address are null, so you will never be able to update them because you don't have their ids.
Is there a way I can update a customer's address without the address id, by using a customer accessToken or id?
Solved! Go to the solution
This is an accepted solution.
This is an accepted solution.
I just noticed that there's a
customerAddressCreate mutation